From b1d4597500f07d87aa32518c4f0baef0bdb8363e Mon Sep 17 00:00:00 2001 From: Xinhui Date: Wed, 12 Oct 2016 14:21:15 +0200 Subject: Reflex:sync Edit TypeOfPlaceRef condition Refs #1796 --- lib/stif/reflex_synchronization.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lib/stif/reflex_synchronization.rb') 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 -- cgit v1.2.3