FIx #18313
This commit is contained in:
parent
eced1c824a
commit
000c32c137
@ -30,10 +30,13 @@ $langs->loadLangs(array("products", "other"));
|
||||
$id = GETPOST('id', 'int');
|
||||
$valueid = GETPOST('valueid', 'int');
|
||||
$ref = GETPOST('ref', 'alpha');
|
||||
$weight_impact = GETPOST('weight_impact', 'alpha');
|
||||
$price_impact = GETPOST('price_impact', 'alpha');
|
||||
$weight_impact = price2num(GETPOST('weight_impact', 'alpha'), 2);
|
||||
$price_impact_percent = (bool) GETPOST('price_impact_percent');
|
||||
|
||||
if ($price_impact_percent) {
|
||||
$price_impact = price2num(GETPOST('price_impact', 'alpha'), 2);
|
||||
} else {
|
||||
$price_impact = price2num(GETPOST('price_impact', 'alpha'), 'MU');
|
||||
}
|
||||
$level_price_impact = GETPOST('level_price_impact', 'array');
|
||||
$level_price_impact_percent = GETPOST('level_price_impact_percent', 'array');
|
||||
|
||||
|
||||
@ -16,8 +16,8 @@
|
||||
*/
|
||||
|
||||
require '../main.inc.php';
|
||||
require DOL_DOCUMENT_ROOT.'/product/class/product.class.php';
|
||||
require DOL_DOCUMENT_ROOT.'/variants/class/ProductAttribute.class.php';
|
||||
require_once DOL_DOCUMENT_ROOT.'/product/class/product.class.php';
|
||||
require_once DOL_DOCUMENT_ROOT.'/variants/class/ProductAttribute.class.php';
|
||||
|
||||
$action = GETPOST('action', 'aZ09');
|
||||
$object = new ProductAttribute($db);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user