diff options
| author | Xinhui | 2016-09-02 16:13:08 +0200 |
|---|---|---|
| committer | Xinhui | 2016-09-02 16:13:08 +0200 |
| commit | bc805a0873f8c6ae0df8a8b1fbec3f9a7c23dac2 (patch) | |
| tree | 93b9ec5b1d8c9fab6674d6e9783c2ed11219fe89 /lib/stif/reflex_synchronization.rb | |
| parent | 4ae538b87f180d69df8768d6ffdd067a3b1beab5 (diff) | |
| download | chouette-core-bc805a0873f8c6ae0df8a8b1fbec3f9a7c23dac2.tar.bz2 | |
Fix reflex:sync stop_area_set_parent undefined parent
Diffstat (limited to 'lib/stif/reflex_synchronization.rb')
| -rw-r--r-- | lib/stif/reflex_synchronization.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/stif/reflex_synchronization.rb b/lib/stif/reflex_synchronization.rb index 580a41c66..dea590eea 100644 --- a/lib/stif/reflex_synchronization.rb +++ b/lib/stif/reflex_synchronization.rb @@ -55,6 +55,7 @@ module Stif def stop_area_set_parent entry return false unless entry.try(:parent_site_ref) || entry.try(:quays) stop = self.find_by_object_id entry.id + return false unless stop if entry.try(:parent_site_ref) stop.parent = self.find_by_object_id entry.parent_site_ref |
