Actions
Improvement #1097
openReduce double displayed error messages
Start date:
Due date:
% Done:
0%
Estimated time:
Compatible Redmine Version:
Pull Request Link:
Description
Files
Updated by liaham almost 3 years ago
- Target version changed from unreleased to unplanned
Updated by liaham over 2 years ago
The source for double rendering is in Redmine Issue Sync.
The error object shows that there are some keys listed which address the project via sync param:
#<ActiveModel::Errors:0x00007fa863622fb0 @base=#<Project id: nil, name: "", description: "", homepage: "", is_public: true, parent_id: nil, created_on: "2022-07-08 10:46:59", updated_on: "2022-07-08 11:57:17", identifier: "", status: 1, lft: nil, rgt: nil, inherit_members: false, default_version_id: nil, default_assigned_to_id: nil, dmsf_description: nil, dmsf_notification: false, dmsf_act_as_attachable: 1, project_type_id: 17, is_project_type: false>, @messages={:name=>["muss ausgefüllt werden"], :identifier=>["muss ausgefüllt werden"], :"sync_param.project.name"=>["muss ausgefüllt werden"], :"sync_param.project.identifier"=>["muss ausgefüllt werden"], :"sync_param.filter"=>["muss auswählt werden."], :"sync_param.root"=>["muss wahr oder falsch sein."]}, @details={:name=>[{:error=>:blank}], :identifier=>[{:error=>:blank}], :"sync_param.project.name"=>[{:error=>:blank}], :"sync_param.project.identifier"=>[{:error=>:blank}], :"sync_param.filter"=>[{:error=>"muss auswählt werden."}], :"sync_param.root"=>[{:error=>"muss wahr oder falsch sein."}]}>
- sync_param.project.identifier
- sync_param.project.name
Currently, I have no idea how to avoid this!
Actions