FIX : input selector is wrong with PRODUCT_LOAD_EXTRAFIELD_INTO_OBJECTLINES usage

This commit is contained in:
Gauthier PC portable 024 2022-10-13 11:25:42 +02:00
parent 2ba4993666
commit 8850412da8

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
} ?>