Fix hidden budget investments restore feature
Add recursive restore option to restore all soft deleted relations.
This commit is contained in:
committed by
voodoorai2000
parent
e8f53cb8b7
commit
ef786d0658
@@ -19,7 +19,7 @@ class Admin::HiddenBudgetInvestmentsController < Admin::BaseController
|
|||||||
end
|
end
|
||||||
|
|
||||||
def restore
|
def restore
|
||||||
@investment.restore
|
@investment.restore(recursive: true)
|
||||||
@investment.ignore_flag
|
@investment.ignore_flag
|
||||||
Activity.log(current_user, :restore, @investment)
|
Activity.log(current_user, :restore, @investment)
|
||||||
redirect_to request.query_parameters.merge(action: :index)
|
redirect_to request.query_parameters.merge(action: :index)
|
||||||
|
|||||||
Reference in New Issue
Block a user