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
When I use smart action hook (load). I would like to execute the code that is written.
Actual behavior
When I click on my smart action a POST to /forest/actions/deny-document/hooks/loadis sent but I get an ActionController::InvalidAuthenticityToken error. This does work on a local environnent.
Failure Logs
Code
classForest::DocumentincludeForestLiana::Collectioncollection:Documentaction'Deny Document',type: 'single',fields: [{field: 'denial_reason',type: 'Enum',description: 'Please select the reason of the denial',enums: ["reason1","reason2"],is_required: true,hook: 'on_denial_reason_changed'}],hooks: {load: lambda{ |context|
puts"hello"},change: {'on_denial_reason_changed'=>lambda{ |context|
puts"changed"}}}end
Context
Package Version: 7.4.1
Rails Version: 6.1.4.7
Database Dialect: Postgres
Database Version: 14.2
The text was updated successfully, but these errors were encountered:
Expected behavior
When I use smart action hook (load). I would like to execute the code that is written.
Actual behavior
When I click on my smart action a POST to
/forest/actions/deny-document/hooks/load
is sent but I get an ActionController::InvalidAuthenticityToken error. This does work on a local environnent.Failure Logs
Code
Context
The text was updated successfully, but these errors were encountered: