// AdminSupplyOrdersController: fixed bugs when adding products to the order

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10758 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
bMancone committed 2011-11-29 17:04:43 +00:00
1 parent b61478ca1e
commit c5dab89eb5
2 files changed
+2 -2

No files matched your search

@@ -74,7 +74,7 @@
{$product.reference} {$product.reference}
<input type="hidden" name="input_check_{$product.id_product}_{$product.id_product_attribute}" value="{$product.checksum}" /> <input type="hidden" name="input_check_{$product.id_product}_{$product.id_product_attribute}" value="{$product.checksum}" />
<input type="hidden" name="input_reference_{$product.id_product}_{$product.id_product_attribute}" value="{$product.reference}" /> <input type="hidden" name="input_reference_{$product.id_product}_{$product.id_product_attribute}" value="{$product.reference}" />
<input type="hidden" name="input_id_{$product.id_product}_{$product.id_product_attribute}" value="{$product.id_supply_order_detail}" /> <input type="hidden" name="input_id_{$product.id_product}_{$product.id_product_attribute}" value="{if isset($product.id_supply_order_detail)}{$product.id_supply_order_detail}{/if}" />
</td> </td>
<td> <td>
{$product.ean13} {$product.ean13}
@@ -807,7 +807,7 @@ class AdminSupplyOrdersControllerCore extends AdminController
$errors = $entry->validateController(); $errors = $entry->validateController();
//get the product name displayed in the backoffice according to the employee language //get the product name displayed in the backoffice according to the employee language
$entry->name_displayed = Tools::getValue('input_name_'.$id, ''); $entry->name_displayed = Tools::getValue('input_name_displayed_'.$id, '');
// if there is a problem, handle error for the current product // if there is a problem, handle error for the current product
if (count($errors) > 0) if (count($errors) > 0)