forest_liana 5.3.1 → 5.3.2
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8ec0228713b3a5f0f943dcd9901d9d866ce2d5df36b452faaa8f163aed2b17aa
|
4
|
+
data.tar.gz: 152af3bfde151e934042b8629c28c77a1fe1ea0a648fd41857fec5cbe9179e03
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7062153dfd912d67d91893d27d89d48f7aeba6a1de21ab442a91e1dc51d0f30369c406b700ed7b9f25fd4d69039172a118894af96f29be713e90543eadb66a18
|
7
|
+
data.tar.gz: 40ed811e8dda8166ee0573377f195ba4e8ee70c2446ffcaad8c4901bf372e0442ae419252fb30e4242f65231433b3e9b7afbedb587c297dfe445c72bfdf237b3
|
@@ -86,8 +86,7 @@ module ForestLiana
|
|
86
86
|
formatted_fields = context[:fields].clone # clone for following test on is_same_data_structure
|
87
87
|
|
88
88
|
# Call the user-defined change hook.
|
89
|
-
|
90
|
-
result = action.hooks[:change][field_name].(context)
|
89
|
+
result = action.hooks[:change][params[:changedField]].(context)
|
91
90
|
|
92
91
|
handle_result(result, formatted_fields, action)
|
93
92
|
end
|
data/lib/forest_liana/version.rb
CHANGED
@@ -109,7 +109,7 @@ describe 'Requesting Actions routes', :type => :request do
|
|
109
109
|
|
110
110
|
describe 'call /change' do
|
111
111
|
updated_foo = foo.clone.merge({:previousValue => nil, :value => 'bar'})
|
112
|
-
params = {recordIds: [1], fields: [updated_foo], collectionName: 'Island'}
|
112
|
+
params = {recordIds: [1], fields: [updated_foo], collectionName: 'Island', changedField: 'foo'}
|
113
113
|
|
114
114
|
it 'should respond 200' do
|
115
115
|
post '/forest/actions/my_action/hooks/change', JSON.dump(params), 'CONTENT_TYPE' => 'application/json'
|