// AdminSupplierOrdersController : litle fix on content displayed when using the 'callback' in fieldsdisplay

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@9959 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
bMancone
2011-11-08 14:11:22 +00:00
parent 34d2efae1e
commit d3cf1d4d3a
@@ -1601,7 +1601,8 @@ class AdminSupplierOrdersControllerCore extends AdminController
if (!Validate::isLoadedObject($supplier_order_state))
return;
if ($supplier_order_state->editable == false && $supplier_order_state->delivery_note == true)
$content = '';
if ($supplier_order_state->editable == false) // @TODO Decide what states are allowed
$content .= '<a href="#"><img src="../img/admin/tab-invoice.gif" alt="invoice" /></a>';
else
$content .= '-';