[-] BO : fix #PSTEST-1128 - when saving a pack, a validation error causes pack data loss

This commit is contained in:
tDidierjean
2012-04-04 12:38:42 +00:00
parent 04b74f6e31
commit d5219d013e
5 changed files with 95 additions and 23 deletions
@@ -91,6 +91,7 @@
var empty_link_rewrite_msg = '{l s='Friendly URL is empty. You need to enter a friendly URL at least for the default language before you can save the product.' slashes=1}';
$('#product-tab-content-wait').show();
var post_data = {$post_data};
var save_error = {if $save_error}true{else}false{/if};
var product_type = {$product_type};
{*var mce_maximum = '{l s='Maximum'}';
@@ -57,14 +57,14 @@
{l s='Add this product to the pack'}
</span>
<p class="product_description listOfPack" style="display:{if count($product->packItems) > 0}block{else}none{/if};text-align: left;">
<p class="product_description listOfPack" style="display:{if count($pack_items) > 0}block{else}none{/if};text-align: left;">
<br />{l s='List of products for that pack:'}
</p>
<div id="divPackItems">
{foreach from=$product->packItems item=packItem}
{$packItem->pack_quantity} x {$packItem->name}
<span class="delPackItem" name="{$packItem->id}" style="cursor: pointer;">
{foreach $pack_items as $pack_item}
{$pack_item.pack_quantity} x {$pack_item.name}
<span class="delPackItem" name="{$pack_item.id}" style="cursor: pointer;">
<img src="../img/admin/delete.gif" />
</span><br />
{/foreach}