|
@@ -157,6 +157,9 @@ class Data extends Page
|
|
|
foreach ($list_search as $v) {
|
|
|
if ($v['type'] != 'hidden') {
|
|
|
$result['form'][] = $v;
|
|
|
+ if (is_numeric($v['value'])) {
|
|
|
+ $v['value'] = (float) $v['value'];
|
|
|
+ }
|
|
|
$result['field'][$v['key']] = $v['value'];
|
|
|
if ($v['type'] == 'sku') {
|
|
|
$result['field'][$v['key'] . '_spec'] = [];
|