aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorXinhui2017-07-17 16:28:13 +0200
committerXinhui2017-07-17 16:28:13 +0200
commit840dc7ee2f51f00cd0b451b7b91fcc462e42a611 (patch)
tree9f5fc4c767835879e1594b1eee63893e8ab428f3 /app
parent655bd61e19ecf68f5c4b90966d619bde0990aa25 (diff)
downloadchouette-core-840dc7ee2f51f00cd0b451b7b91fcc462e42a611.tar.bz2
Vehicle journey state update display full message
Refs #4109
Diffstat (limited to 'app')
-rw-r--r--app/models/chouette/vehicle_journey.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/chouette/vehicle_journey.rb b/app/models/chouette/vehicle_journey.rb
index 71c339780..19299d098 100644
--- a/app/models/chouette/vehicle_journey.rb
+++ b/app/models/chouette/vehicle_journey.rb
@@ -142,7 +142,7 @@ module Chouette
vj.update_attributes(state_permited_attributes(item))
vj.update_has_and_belongs_to_many_from_state(item)
- item['errors'] = vj.errors if vj.errors.any?
+ item['errors'] = vj.errors.full_messages.uniq if vj.errors.any?
end
# Delete ids of new object from state if we had to rollback