From 43517c629a5bad89a025fe898ba805ccd86dabdf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Chans=C3=A9aume?= Date: Tue, 15 Jul 2014 14:40:16 +0200 Subject: [PATCH] Fixed order edit. When a product was deleted, the title was blank. Now we use the order_product title. --- templates/backOffice/default/order-edit.html | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/templates/backOffice/default/order-edit.html b/templates/backOffice/default/order-edit.html index e7a87a5ee..5fe46c037 100644 --- a/templates/backOffice/default/order-edit.html +++ b/templates/backOffice/default/order-edit.html @@ -99,9 +99,15 @@ {/if} - {loop type="product" name="my_product_loop" visible="*" ref="$REF"} - {$TITLE} - {/loop} + {ifloop rel="my_product_loop"} + {loop type="product" name="my_product_loop" visible="*" ref="$REF"} + {$TITLE} + {/loop} + {/ifloop} + {elseloop rel="my_product_loop"} + {* The product doesn't exist anymore *} + {$TITLE} + {/elseloop} {ifloop rel="combinations"}
{loop type="order_product_attribute_combination" name="combinations" order_product=$ID}