* finish task #8387.

This commit is contained in:
wangyidong
2019-07-31 09:10:00 +08:00
parent 59251affd2
commit f3a57d65d7
+3 -1
View File
@@ -34,6 +34,7 @@ class fixer extends baseFixer
{
$fields = str_replace(' ', '', trim($fields));
/* Get extend field by flow. */
global $config;
$flowFields = array();
if(isset($config->bizVersion))
@@ -45,14 +46,15 @@ class fixer extends baseFixer
}
foreach($this->data as $field => $value)
{
/* Implode array when form has array. */
if(isset($flowFields[$field]) and is_array($value)) $this->data->$field = implode(',', $value);
$this->specialChars($field);
}
if(empty($fields)) return $this->data;
if(strpos($fields, ',') === false) return $this->data->$fields;
/* Process fields for check by key. */
$fields = array_flip(explode(',', $fields));
foreach($this->data as $field => $value)
{