diff options
| author | cedricnjanga | 2018-02-06 21:03:35 -0800 |
|---|---|---|
| committer | cedricnjanga | 2018-03-05 23:10:06 -0800 |
| commit | d49271a112bd6b989c8aacddca71892d87e3e10e (patch) | |
| tree | 708d461ba2ffc88904960b8542d0f140743b8f1e | |
| parent | 426f0057605e3fedd8ffa45433428dfb25a0971c (diff) | |
| download | chouette-core-d49271a112bd6b989c8aacddca71892d87e3e10e.tar.bz2 | |
Refs #5855 Avoid creation of CCBlocks duplicates in the same CCSet
| -rw-r--r-- | app/controllers/compliance_control_blocks_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/compliance_control_blocks_controller.rb b/app/controllers/compliance_control_blocks_controller.rb index 635b96c85..526600849 100644 --- a/app/controllers/compliance_control_blocks_controller.rb +++ b/app/controllers/compliance_control_blocks_controller.rb @@ -8,7 +8,7 @@ class ComplianceControlBlocksController < ChouetteController def check_duplicate unless @compliance_control_block.errors[:condition_attributes].empty? - flash[:error] = I18n.t('activerecord.errors.models.compliance_control_block.attributes.condition_attributes.duplicate') + flash[:error] = @compliance_control_block.errors[:condition_attributes].join(', ') end end |
