diff --git a/htdocs/product/class/html.formproduct.class.php b/htdocs/product/class/html.formproduct.class.php index bfddbc024db..9b2ad20dd28 100644 --- a/htdocs/product/class/html.formproduct.class.php +++ b/htdocs/product/class/html.formproduct.class.php @@ -684,7 +684,7 @@ class FormProduct * @param array $events Event options to run on change. Example: array(array('method'=>'getContacts', 'url'=>dol_buildpath('/core/ajax/contacts.php',1), 'htmlname'=>'contactid', 'params'=>array('add-customer-contact'=>'disabled'))) * @return string HTML string with select and input */ - public function select_productbatch_status($selected = '', $page = '', $htmlname = 'fk_status', $htmloption = '', $forcecombo = 1, $events = array()) + public function select_productbatch_qcstatus($selected = '', $page = '', $htmlname = 'fk_qcstatus', $htmloption = '', $forcecombo = 1, $events = array()) { // phpcs:enable global $conf, $langs; @@ -695,11 +695,11 @@ class FormProduct $statusArray = array(); $sql = "SELECT code, label"; - $sql .= " FROM ".MAIN_DB_PREFIX."c_productbatch_status"; + $sql .= " FROM ".MAIN_DB_PREFIX."c_productbatch_qcstatus"; $sql .= " WHERE active > 0"; $sql .= " ORDER BY code ASC"; - dol_syslog(get_class($this)."::select_productbatch_status", LOG_DEBUG); + dol_syslog(get_class($this)."::select_productbatch_qcstatus", LOG_DEBUG); $resql = $this->db->query($sql); if ($resql) { if ($conf->use_javascript_ajax && !$forcecombo) { @@ -709,7 +709,7 @@ class FormProduct if (!empty($page)) { $out .= '