mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
qual: phpstan
htdocs/public/partnership/new.php 275 Property Societe::$country_id (int) does not accept array|string. htdocs/public/partnership/new.php 276 Property CommonObject::$state_id (int) does not accept array|string. htdocs/public/partnership/new.php 303 Property Societe::$country_id (int) does not accept array|string. htdocs/public/partnership/new.php 312 Property CommonObject::$state_id (int) does not accept array|string.
This commit is contained in:
parent
32b05403ce
commit
26b845e052
|
|
@ -272,8 +272,8 @@ if (empty($reshook) && $action == 'add') {
|
|||
$company->town = GETPOST('town');
|
||||
$company->email = GETPOST('email');
|
||||
$company->url = GETPOST('url');
|
||||
$company->country_id = GETPOST('country_id', 'int');
|
||||
$company->state_id = GETPOST('state_id', 'int');
|
||||
$company->country_id = GETPOSTINT('country_id');
|
||||
$company->state_id = GETPOSTINT('state_id');
|
||||
$company->name_alias = dolGetFirstLastname(GETPOST('firstname'), GETPOST('lastname'));
|
||||
|
||||
$resultat=$company->create($user);
|
||||
|
|
@ -300,7 +300,7 @@ if (empty($reshook) && $action == 'add') {
|
|||
$company->town = GETPOST('town');
|
||||
}
|
||||
if (empty($company->country_id)) {
|
||||
$company->country_id = GETPOST('country_id', 'int');
|
||||
$company->country_id = GETPOSTINT('country_id');
|
||||
}
|
||||
if (empty($company->email)) {
|
||||
$company->email = GETPOST('email');
|
||||
|
|
@ -309,7 +309,7 @@ if (empty($reshook) && $action == 'add') {
|
|||
$company->url = GETPOST('url');
|
||||
}
|
||||
if (empty($company->state_id)) {
|
||||
$company->state_id = GETPOST('state_id', 'int');
|
||||
$company->state_id = GETPOSTINT('state_id');
|
||||
}
|
||||
if (empty($company->name_alias)) {
|
||||
$company->name_alias = dolGetFirstLastname(GETPOST('firstname'), GETPOST('lastname'));
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user