[-] 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:
rGaillard
2012-07-13 15:51:44 +00:00
parent 17285402c3
commit e1c0bcf502
2 changed files with 4 additions and 3 deletions
@@ -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();