// Fixed #PSTEST-651
This commit is contained in:
1 parent
9cece75035
commit
eaf35ba262
2 files changed
+3
-2
No files matched your search
@@ -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);
|
||||||
|
|||||||
Reference in new issue
Block a user