def replace
Issue.transaction do
@issues.each do |issue|
- logger.info "#{issue.id}"
- issue.safe_attributes = {@attribute_name => issue[@attribute_name].gsub(@find_exp, @replace)}
+ issue.safe_attributes = {@attribute_name => issue[@attribute_name].gsub(@find_regexp, @replace)}
issue.save!
end
end
end
end
+ # rails filter
def check_replace_args
unless @attribute_name.include?('subject')
logger.warn "### quick edit ### no support. target_specifier=" + @target_specifier
render_error :status => 400
return
end
- @replace = Regexp.escape(@replace)
+ @replace = @replace.gsub(/\\/, '\\\\\\\\')
end
def get_input_dialog_params_for_core_fields(issue, target_specifier)