From fd15992ddf08752a5bc1d603d31229f3bdb33634 Mon Sep 17 00:00:00 2001 From: Florian HENRY Date: Mon, 8 Feb 2021 16:54:51 +0100 Subject: [PATCH 1/2] fix spelling --- htdocs/core/tpl/objectline_create.tpl.php | 2 ++ htdocs/product/ajax/products.php | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/htdocs/core/tpl/objectline_create.tpl.php b/htdocs/core/tpl/objectline_create.tpl.php index 954d17e450b..dc6e46ab2e7 100644 --- a/htdocs/core/tpl/objectline_create.tpl.php +++ b/htdocs/core/tpl/objectline_create.tpl.php @@ -705,6 +705,8 @@ if (!empty($usemargins) && $user->rights->margins->creer) } ?> + each(data.array_options) { + } }, 'json' ); diff --git a/htdocs/product/ajax/products.php b/htdocs/product/ajax/products.php index 18ce5d12619..198d49defaf 100644 --- a/htdocs/product/ajax/products.php +++ b/htdocs/product/ajax/products.php @@ -192,7 +192,7 @@ if (!empty($action) && $action == 'fetch' && !empty($id)) 'tva_tx' => $outtva_tx, 'qty' => $outqty, 'discount' => $outdiscount, - 'array_option'=>$object->array_options); + 'array_options'=>$object->array_options); } echo json_encode($outjson); From e7ea7b8381375e7bbb27479afd81ea11a96e64b5 Mon Sep 17 00:00:00 2001 From: Florian HENRY Date: Mon, 8 Feb 2021 17:46:33 +0100 Subject: [PATCH 2/2] fix spelling --- htdocs/core/tpl/objectline_create.tpl.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/htdocs/core/tpl/objectline_create.tpl.php b/htdocs/core/tpl/objectline_create.tpl.php index dc6e46ab2e7..954d17e450b 100644 --- a/htdocs/core/tpl/objectline_create.tpl.php +++ b/htdocs/core/tpl/objectline_create.tpl.php @@ -705,8 +705,6 @@ if (!empty($usemargins) && $user->rights->margins->creer) } ?> - each(data.array_options) { - } }, 'json' );