You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The signature of hooks functions has changed. In order to support the hooks for global and bulk smart action, record is no longer sent to the hook. You must change the way you get the record information.
After:
[...]:hooks=>{:load=>->(context){id=ForestLiana::ResourcesGetter.get_ids_from_request(context[:params])[0];# orid=context[:params][:data][:attributes][:ids][0];record=model.find(id) <<<<<<<<<<<<<<< Thisdoesn't work field = context[:fields].find{|field| field[:field] == 'afield'}field[:value]=record.a_props;returncontext[:fields];}}[...]
Expected behavior
The following section:
Is expected to retrieve the record
Actual behavior
But the
ForestLiana::Model::Collection
instance doesn't seem to supportfind
.Context
The text was updated successfully, but these errors were encountered: