// Fixed #PSTEST-651

This commit is contained in:
bMancone
2012-02-06 09:23:57 +00:00
parent 9cece75035
commit eaf35ba262
2 changed files with 3 additions and 2 deletions
@@ -29,13 +29,13 @@
<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>
<legend>
<img src="../img/admin/pdf.gif" alt="{l s='Supply Order State'}">
{l s='Print the supply order form'}
</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>
{/if}
@@ -584,6 +584,7 @@ class AdminSupplyOrdersControllerCore extends AdminController
// assigns our content
$helper->tpl_vars['show_change_state_form'] = true;
$helper->tpl_vars['supply_order_state'] = $supply_order_state;
$helper->tpl_vars['supply_order'] = $supply_order;
// generates the form to display
$content = $helper->generateForm($this->fields_form);