Better error message
This commit is contained in:
parent
b4d0549017
commit
a12b6394be
@ -3897,7 +3897,7 @@ class Societe extends CommonObject
|
|||||||
$state_code = $tmp[1];
|
$state_code = $tmp[1];
|
||||||
$state_label = $tmp[2];
|
$state_label = $tmp[2];
|
||||||
} else { // For backward compatibility
|
} else { // For backward compatibility
|
||||||
dol_syslog("Your state setup use an old syntax (entity=".$conf->entity."). Reedit it using setup area.", LOG_ERR);
|
dol_syslog("Your setup of State an old syntax (entity=".$conf->entity."). Go in Home - Setup - Organization then Save should remove this error.", LOG_ERR);
|
||||||
include_once DOL_DOCUMENT_ROOT.'/core/lib/company.lib.php';
|
include_once DOL_DOCUMENT_ROOT.'/core/lib/company.lib.php';
|
||||||
$state_code = getState($state_id, 2, $this->db); // This need a SQL request, but it's the old feature that should not be used anymore
|
$state_code = getState($state_id, 2, $this->db); // This need a SQL request, but it's the old feature that should not be used anymore
|
||||||
$state_label = getState($state_id, 0, $this->db); // This need a SQL request, but it's the old feature that should not be used anymore
|
$state_label = getState($state_id, 0, $this->db); // This need a SQL request, but it's the old feature that should not be used anymore
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user