|
|
|
@ -42,13 +42,13 @@ module OpenProject::Backlogs::Patches::VersionsControllerPatch |
|
|
|
|
helper :version_settings |
|
|
|
|
|
|
|
|
|
# Find project explicitly on update and edit |
|
|
|
|
skip_before_filter :find_project_from_association, only: [:edit, :update] |
|
|
|
|
skip_before_filter :find_model_object, only: [:edit, :update] |
|
|
|
|
prepend_before_filter :find_project_and_version, only: [:edit, :update] |
|
|
|
|
skip_before_action :find_project_from_association, only: [:edit, :update] |
|
|
|
|
skip_before_action :find_model_object, only: [:edit, :update] |
|
|
|
|
prepend_before_action :find_project_and_version, only: [:edit, :update] |
|
|
|
|
|
|
|
|
|
before_filter :add_project_to_version_settings_attributes, only: [:update, :create] |
|
|
|
|
before_action :add_project_to_version_settings_attributes, only: [:update, :create] |
|
|
|
|
|
|
|
|
|
before_filter :whitelist_update_params, only: :update |
|
|
|
|
before_action :whitelist_update_params, only: :update |
|
|
|
|
|
|
|
|
|
def whitelist_update_params |
|
|
|
|
if @project != @version.project |
|
|
|
|