Skip to content

Commit

Permalink
Merge pull request #10506 from ATM-Marc/FIX_7.0_parent_line
Browse files Browse the repository at this point in the history
FIX: line edit template: keep fk_parent_line
  • Loading branch information
eldy committed Feb 8, 2019
2 parents 76b021d + 428efa9 commit 4997b59
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions htdocs/core/tpl/objectline_edit.tpl.php
Expand Up @@ -69,9 +69,13 @@
<input type="hidden" id="product_type" name="type" value="<?php echo $line->product_type; ?>">
<input type="hidden" id="product_id" name="productid" value="<?php echo (! empty($line->fk_product)?$line->fk_product:0); ?>" />
<input type="hidden" id="special_code" name="special_code" value="<?php echo $line->special_code; ?>">
<input type="hidden" id="fk_parent_line" name="fk_parent_line" value="<?php echo $line->fk_parent_line; ?>">

<?php if ($line->fk_product > 0) { ?>

<?php
if ($line->fk_parent_line > 0) echo img_picto('', 'rightarrow');
?>
<a href="<?php echo DOL_URL_ROOT.'/product/card.php?id='.$line->fk_product; ?>">
<?php
if ($line->product_type==1) echo img_object($langs->trans('ShowService'),'service');
Expand Down

0 comments on commit 4997b59

Please sign in to comment.