diff options
| author | Xinhui | 2016-10-12 14:21:15 +0200 |
|---|---|---|
| committer | Xinhui | 2016-10-12 14:21:15 +0200 |
| commit | b1d4597500f07d87aa32518c4f0baef0bdb8363e (patch) | |
| tree | 1312dda9b6cc3a48c527578c9a5b7a0b3b657c53 /lib/stif/reflex_synchronization.rb | |
| parent | ff6467f636ec6976bd00818e5cb986e43d9b4d3b (diff) | |
| download | chouette-core-b1d4597500f07d87aa32518c4f0baef0bdb8363e.tar.bz2 | |
Reflex:sync Edit TypeOfPlaceRef condition
Refs #1796
Diffstat (limited to 'lib/stif/reflex_synchronization.rb')
| -rw-r--r-- | lib/stif/reflex_synchronization.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/stif/reflex_synchronization.rb b/lib/stif/reflex_synchronization.rb index 32fcbc531..822a295c0 100644 --- a/lib/stif/reflex_synchronization.rb +++ b/lib/stif/reflex_synchronization.rb @@ -48,8 +48,9 @@ module Stif end def is_valid_type_of_place_ref? method, entry - return true if method == 'getOR' && ['ZDL', 'ZDE'].include?(entry["TypeOfPlaceRef"]) - return true if method == 'getOP' && ['LDA', 'ZDE'].include?(entry["TypeOfPlaceRef"]) + return true if entry["TypeOfPlaceRef"].nil? + return true if method == 'getOR' && ['ZDL', 'LDA', 'ZDE'].include?(entry["TypeOfPlaceRef"]) + return true if method == 'getOP' && ['ZDE'].include?(entry["TypeOfPlaceRef"]) end def set_deleted_stop_area processed |
