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 9d791b45 authored by Mark Wienk's avatar Mark Wienk

Updated config import to support serialization

parent 2e87b22a
...@@ -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) {
$value = $unserialized;
}
$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