We will be off from 27/1 (Monday) to 31/1 (Friday) (GMT +7) for our Tet Holiday (Lunar New Year) in our country

Commit c8bf0c44 authored by Rik ter Beek's avatar Rik ter Beek Committed by GitHub

Merge pull request #218 from mwienk/develop

Config import with serialized value
parents 604586d8 28c7bccf
...@@ -62,6 +62,10 @@ class Installments extends \Magento\Framework\App\Config\Value ...@@ -62,6 +62,10 @@ class Installments extends \Magento\Framework\App\Config\Value
public function beforeSave() public function beforeSave()
{ {
$value = $this->getValue(); $value = $this->getValue();
$unserialized = @unserialize($value);
if ($unserialized !== false) {
return $this;
}
$result = []; $result = [];
foreach ($value as $data) { foreach ($value as $data) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment