// Fixed #PSTEST-651

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@13007 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
bMancone
2012-02-06 09:23:57 +00:00
parent db6cb33b3f
commit 84ae5dd342
2 changed files with 3 additions and 2 deletions
@@ -29,13 +29,13 @@
<br /> <br />
{if isset($supply_order_state) && $supply_order_state->editable == false} {if isset($supply_order_state) && $supply_order_state->editable == false && isset($supply_order)}
<fieldset> <fieldset>
<legend> <legend>
<img src="../img/admin/pdf.gif" alt="{l s='Supply Order State'}"> <img src="../img/admin/pdf.gif" alt="{l s='Supply Order State'}">
{l s='Print the supply order form'} {l s='Print the supply order form'}
</legend> </legend>
<a href="pdf.php?id_supply_order='.(int)$supply_order->id.'" target="_blank" title="Export as PDF">{l s='Click here to download the supply order form'}.</a> <a href="pdf.php?id_supply_order={$supply_order->id}" target="_blank" title="Export as PDF">{l s='Click here to download the supply order form'}.</a>
</fieldset> </fieldset>
{/if} {/if}
@@ -584,6 +584,7 @@ class AdminSupplyOrdersControllerCore extends AdminController
// assigns our content // assigns our content
$helper->tpl_vars['show_change_state_form'] = true; $helper->tpl_vars['show_change_state_form'] = true;
$helper->tpl_vars['supply_order_state'] = $supply_order_state; $helper->tpl_vars['supply_order_state'] = $supply_order_state;
$helper->tpl_vars['supply_order'] = $supply_order;
// generates the form to display // generates the form to display
$content = $helper->generateForm($this->fields_form); $content = $helper->generateForm($this->fields_form);