Skip to content

Commit

Permalink
fix select unit (#31868)
Browse files Browse the repository at this point in the history
* fix select unit

* Update html.formproduct.class.php
  • Loading branch information
frederic34 authored Nov 15, 2024
1 parent 1637319 commit 0cb9fe1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion htdocs/product/class/html.formproduct.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -576,6 +576,7 @@ public function selectMeasuringUnits($name = 'measuring_units', $measuring_style
$langs->load("other");

$return = '';
$placeholderID = ($mode == 2 ? '99999999' : '-1'); // we don't want ajaxcombobox replace clearing option in mode 2

// TODO Use a cache
require_once DOL_DOCUMENT_ROOT.'/core/class/cunits.class.php';
Expand Down Expand Up @@ -631,7 +632,7 @@ public function selectMeasuringUnits($name = 'measuring_units', $measuring_style
$return .= '</select>';
}

$return .= ajax_combobox($name);
$return .= ajax_combobox($name, [], 0, 0, 'resolve', $placeholderID);

return $return;
}
Expand Down

0 comments on commit 0cb9fe1

Please sign in to comment.