[-] BO: Fix PSCFV-3186
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@16422 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -257,15 +257,16 @@ class AdminSpecificPriceRuleControllerCore extends AdminController
|
||||
'class' => 'button'
|
||||
),
|
||||
);
|
||||
if ($value = $this->getFieldValue($this->object, 'price') != -1)
|
||||
if (($value = $this->getFieldValue($this->object, 'price')) != -1)
|
||||
$price = number_format($value, 2);
|
||||
else
|
||||
$price = '';
|
||||
|
||||
$this->fields_value = array(
|
||||
'price' => $price,
|
||||
'from_quantity' => (($value = $this->getFieldValue($this->object, 'from_quantity')) ? $value : 1),
|
||||
'reduction' => number_format((($value = $this->getFieldValue($this->object, 'reduction')) ? $value : 0), 2),
|
||||
'leave_bprice_on' => ($value = $this->getFieldValue($this->object, 'price')) ? $value : 1
|
||||
'leave_bprice_on' => $price ? 0 : 1
|
||||
);
|
||||
|
||||
$attribute_groups = array();
|
||||
|
||||
Reference in New Issue
Block a user