Browse Source

MMICore : Fix keep display product name after added in document

Mathieu Moulin 2 years ago
parent
commit
0702d2e8ce
1 changed files with 1 additions and 1 deletions
  1. 1 1
      htdocs/core/lib/ajax.lib.php

+ 1 - 1
htdocs/core/lib/ajax.lib.php

@@ -202,7 +202,7 @@ function ajax_autocompleter($selected, $htmlname, $url, $urloption = '', $minLen
 	if (!empty($conf->global->MAIN_SHOW_ADDED_PRODUCT_LABEL)) {
 		$script .= '
 							// Add label
-							$("#'.$htmlname.'").attr("data-label", ui.item.label);
+							$("#'.$htmlnamejquery.'").attr("data-label", ui.item.label);
 
 		';
 	}