2017-05-31 15:24:46 +03:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Retailcrm\Retailcrm\Model\Setting;
|
|
|
|
|
|
|
|
class Status extends \Magento\Config\Model\Config\Backend\Serialized\ArraySerialized
|
|
|
|
{
|
|
|
|
public function beforeSave()
|
|
|
|
{
|
|
|
|
// For value validations
|
|
|
|
$exceptions = $this->getValue();
|
|
|
|
|
2018-03-12 16:34:48 +03:00
|
|
|
// Validations
|
2017-05-31 15:24:46 +03:00
|
|
|
$this->setValue($exceptions);
|
|
|
|
|
|
|
|
return parent::beforeSave();
|
|
|
|
}
|
2018-03-12 16:34:48 +03:00
|
|
|
}
|