diff --git a/RFXtoRP_HsrPro.ftl b/RFXtoRP_HsrPro.ftl index 5bf0bcd..c1ec47e 100644 --- a/RFXtoRP_HsrPro.ftl +++ b/RFXtoRP_HsrPro.ftl @@ -18,7 +18,7 @@ [ <#-- check preparation type code (internal order and reservation are ignored) --> - <#if preparation_order.preparation_type_code == "010" || preparation_order.preparation_type_code == "030"> + <#if preparation_order.preparation_type_code?? && (preparation_order.preparation_type_code == "010" || preparation_order.preparation_type_code == "030")> <#-- Only if preparation order not confirmed --> <#if preparation_order.preparation_order_confirmed == "false" > {