From bd5acde0c7a19221d3960a6228b0105b25e250bb Mon Sep 17 00:00:00 2001 From: Laurent Destailleur <eldy@destailleur.fr> Date: Wed, 29 Aug 2012 19:03:58 +0200 Subject: [PATCH] Add tag to detect new method (to help debugs) --- htdocs/core/tpl/objectline_add.tpl.php | 1 + htdocs/core/tpl/objectline_edit.tpl.php | 1 + 2 files changed, 2 insertions(+) diff --git a/htdocs/core/tpl/objectline_add.tpl.php b/htdocs/core/tpl/objectline_add.tpl.php index 88a3022338f..30bafcd7a9d 100644 --- a/htdocs/core/tpl/objectline_add.tpl.php +++ b/htdocs/core/tpl/objectline_add.tpl.php @@ -60,6 +60,7 @@ if (! empty($conf->margin->enabled)) { <form name="addproduct" id="addproduct" action="<?php echo $_SERVER["PHP_SELF"].'?id='.$this->id; ?>#add" method="POST"> <input type="hidden" name="token" value="<?php echo $_SESSION['newtoken']; ?>" /> <input type="hidden" name="action" value="addline" /> +<input type="hidden" name="usenewaddlineform" value="1" /> <input type="hidden" name="id" value="<?php echo $this->id; ?>" /> <?php if (! empty($conf->product->enabled) || ! empty($conf->service->enabled)) { ?> diff --git a/htdocs/core/tpl/objectline_edit.tpl.php b/htdocs/core/tpl/objectline_edit.tpl.php index ac0fe494e0e..c9487574121 100644 --- a/htdocs/core/tpl/objectline_edit.tpl.php +++ b/htdocs/core/tpl/objectline_edit.tpl.php @@ -30,6 +30,7 @@ <form action="<?php echo $_SERVER["PHP_SELF"].'?id='.$this->id.'#'.$line->id; ?>" method="POST"> <input type="hidden" name="token" value="<?php echo $_SESSION['newtoken']; ?>"> <input type="hidden" name="action" value="updateligne"> +<input type="hidden" name="usenewupdatelineform" value="1" /> <input type="hidden" name="id" value="<?php echo $this->id; ?>"> <input type="hidden" name="lineid" value="<?php echo $line->id; ?>"> <input type="hidden" id="product_type" name="type" value="<?php echo $line->product_type; ?>"> -- GitLab