Merge pull request #27360 from frederic34/patch-20

Method should return int|null but return statement is missing.
This commit is contained in:
Laurent Destailleur 2024-01-10 14:30:15 +01:00 committed by GitHub
commit 7cf20b9e8f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -88,7 +88,7 @@ class FormCategory extends Form
* @param string $selected Id category pre-selection
* @param string $htmlname Name of HTML field
* @param int $showempty Add an empty field
* @return integer|null
* @return int|null
*/
public function selectProductCategory($selected = 0, $htmlname = 'product_category_id', $showempty = 0)
{
@ -123,6 +123,7 @@ class FormCategory extends Form
return $num_rows;
} else {
dol_print_error($this->db);
return;
}
}
}