// clean code

[-] BO : fixed bug #PSTEST-510 - Now, you can't define several times the same order status
This commit is contained in:
aFolletete
2012-01-25 09:55:12 +00:00
parent d460ce5328
commit 10237c6d5b
4 changed files with 54 additions and 45 deletions
@@ -104,7 +104,9 @@
<form action="{$currentIndex}&viewOrder&token={$smarty.get.token}" method="post">
<select id="id_order_state" name="id_order_state">
{foreach from=$states item=state}
<option value="{$state['id_order_state']}" {if $state['id_order_state'] == $currentState->id}selected="selected"{/if}>{$state['name']|stripslashes}</option>
{if $state['id_order_state'] != $currentState->id}
<option value="{$state['id_order_state']}">{$state['name']|stripslashes}</option>
{/if}
{/foreach}
</select>
<input type="hidden" name="id_order" value="{$order->id}" />