diff options
| author | Zog | 2018-01-11 12:29:49 +0100 | 
|---|---|---|
| committer | Zog | 2018-01-11 12:29:49 +0100 | 
| commit | e52651964779f1019819a1ef7134a8623099ea0e (patch) | |
| tree | 6bc0c37b35135d1d2b12fa5ce17f03496a38d337 | |
| parent | 833d1e4f991f0f7a0f8800bbdc97410a846ffcec (diff) | |
| download | chouette-core-e52651964779f1019819a1ef7134a8623099ea0e.tar.bz2 | |
Refs #5547; Do the same for JourneyPatterns5547-show-vj-id
| -rw-r--r-- | app/models/chouette/journey_pattern.rb | 2 | 
1 files changed, 2 insertions, 0 deletions
| diff --git a/app/models/chouette/journey_pattern.rb b/app/models/chouette/journey_pattern.rb index d03eb6ad7..55faaf997 100644 --- a/app/models/chouette/journey_pattern.rb +++ b/app/models/chouette/journey_pattern.rb @@ -72,7 +72,9 @@ module Chouette        # In this case, we mark jp to be valid if persisted? return true        jp.errors.clear if jp.persisted? +      jp.after_commit_objectid        item['object_id']  = jp.objectid +      item['short_id']  = jp.get_objectid.short_id        item['new_record'] = true        jp      end | 
