diff --git a/e107_handlers/form_handler.php b/e107_handlers/form_handler.php index 55284a3eb..c3f18f514 100644 --- a/e107_handlers/form_handler.php +++ b/e107_handlers/form_handler.php @@ -5381,6 +5381,11 @@ var_dump($select_options);*/ $value = defset($value,$value); } + if(is_array($value) && ($attributes['data'] === 'json')) + { + $value = e107::serialize($value, 'json'); + } + if(!empty($parms['truncate'])) { $value = $tp->text_truncate($value, $parms['truncate'], '...'); @@ -6760,6 +6765,11 @@ var_dump($select_options);*/ $ret = ''; } + if(is_array($value) && ($attributes['data'] === 'json')) + { + $value = e107::serialize($value, 'json'); + } + $ret .= $this->hidden($key, $value); break; diff --git a/e107_handlers/model_class.php b/e107_handlers/model_class.php index 038105356..2270d52e9 100755 --- a/e107_handlers/model_class.php +++ b/e107_handlers/model_class.php @@ -3645,7 +3645,7 @@ class e_tree_model extends e_front_model * * Sets the count in $this->_total * - * @param resource $sql SQL resource that executed a query + * @param e_db_pdo $sql SQL resource that executed a query * @return int Number of results from the latest query */ protected function countResults($sql)