Reply To: empty field in database not handled as expected

#1553
ppmt
Participant

Ok so may be I am missing something but it doesn’t seem to work for me. Here is an extract of an invoice. As you can see the field phone, fax, mobile and email are empty but the field is still displayed.

Here is the code I am using in my template:

      {print_if_not_empty label=$LANG.phoneShort field=$customer.phone class1='' class2='' colspan="3"}
      {print_if_not_empty label=$LANG.fax field=$customer.fax class1='' class2='' colspan="3"}
      {print_if_not_empty label=$LANG.mobileShort field=$customer.mobile_phone class1='' class2='' colspan="3"}
      {print_if_not_empty label=$LANG.email field=$customer.email class1='' class2='' colspan="3"}

I have tried with print_if_not_null as well and the result is the same.