implement duplication
This commit is contained in:
@@ -38,10 +38,6 @@ class ContractTemplatesController < ApplicationController
|
||||
end
|
||||
|
||||
def update
|
||||
unless @contract_template.editable?
|
||||
redirect_to([@project, :contract_templates], alert: t('.error')) and return
|
||||
end
|
||||
|
||||
@contract_template.attributes = contract_template_params
|
||||
|
||||
if @contract_template.save
|
||||
|
||||
Reference in New Issue
Block a user