Skip to content

Commit e3a6d57

Browse files
committed
Fixes 500 error occurred during refreshing of provider instance
The error occurs only in cases when refresh is done 'after' a reconfigure operation on the provider instance. It was rendering the _resize partial due to a pre-existing value in the @sb[:action] Fixes rspec failures
1 parent 319e8d8 commit e3a6d57

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

app/controllers/application_controller/explorer.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,8 @@ def x_button
8484

8585
# Process model actions that are currently implemented
8686
if X_BUTTON_ALLOWED_ACTIONS[action] == :s1
87+
# resetting action that was stored during other operations
88+
@sb[:action] = nil if @sb
8789
send(method)
8890
elsif X_BUTTON_ALLOWED_ACTIONS[action] == :s2
8991
# don't need to set params[:id] and do find_checked_items for methods

0 commit comments

Comments
 (0)