|
|
@@ -62,7 +62,7 @@ class ShopGoodsForm extends Model
|
|
|
[['selectedIds'], 'isSelected'],
|
|
|
[['sort'], 'isSort'],
|
|
|
[['sellDiscount'], 'isDiscount'],
|
|
|
- [['pricePv', 'sellPriceStandard'], 'isPrice'],
|
|
|
+ [['sellPriceStandard'], 'isPrice'],
|
|
|
];
|
|
|
}
|
|
|
|
|
|
@@ -176,10 +176,6 @@ class ShopGoodsForm extends Model
|
|
|
|
|
|
public function isPrice($attributes)
|
|
|
{
|
|
|
- if ($this->pricePv <= 0) {
|
|
|
- $this->addError($attributes, \Yii::t('ctx', 'pvMustGreaterThanZero'));
|
|
|
- }
|
|
|
-
|
|
|
if ($this->sellPriceStandard <= 0) {
|
|
|
$this->addError($attributes, \Yii::t('ctx', 'sellPriceStandardMustGreaterThanZero'));
|
|
|
}
|