Merge pull request #22569 from atm-gauthier/fix_conf_PRODUCT_LOAD_EXTRAFIELD_INTO_OBJECTLINES

FIX : input selector is wrong with PRODUCT_LOAD_EXTRAFIELD_INTO_OBJEC…
This commit is contained in:
Laurent Destailleur 2022-10-14 19:22:56 +02:00 committed by GitHub
commit 459086b11e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -733,7 +733,7 @@ if (!empty($usemargins) && $user->rights->margins->creer) {
<?php
if (!empty($conf->global->PRODUCT_LOAD_EXTRAFIELD_INTO_OBJECTLINES)) { ?>
jQuery.each(data.array_options, function( key, value ) {
jQuery('div[class$="det'+key.replace('options_','_extras_')+'"] > #'+key).val(value);
jQuery('div[class*="det'+key.replace('options_','_extras_')+'"] > #'+key).val(value);
});
<?php
} ?>