Fix unknown variable in product.class.php

This commit is contained in:
Frédéric FRANCE 2023-04-27 20:07:36 +02:00 committed by GitHub
parent 57cbb21f6b
commit ef8f8d990a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -572,7 +572,7 @@ class Product extends CommonObject
*/
public function check()
{
if (!empty($conf->global->MAIN_SECURITY_ALLOW_UNSECURED_REF_LABELS)) {
if (getDolGlobalInt('MAIN_SECURITY_ALLOW_UNSECURED_REF_LABELS')) {
$this->ref = trim($this->ref);
} else {
$this->ref = dol_sanitizeFileName(stripslashes($this->ref));