* finish task #5201.

This commit is contained in:
wangyidong
2019-01-02 09:51:06 +08:00
parent 7965361268
commit 2b15b8d3c6
+4 -3
View File
@@ -148,12 +148,13 @@ class custom extends control
}
$this->custom->deleteItems("lang=$lang&module=$module&section=$field");
foreach($_POST['keys'] as $index => $key)
$data = fixer::input('post')->get();
foreach($data->keys as $index => $key)
{
//if(!$system and (!$value or !$key)) continue; //Fix bug #951.
$value = $_POST['values'][$index];
$system = $_POST['systems'][$index];
$value = $data->values[$index];
$system = $data->systems[$index];
$this->custom->setItem("{$lang}.{$module}.{$field}.{$key}.{$system}", $value);
}
}