Fix some proposal php 8 warning
This commit is contained in:
parent
9b59f264fd
commit
b83f57da48
@ -65,6 +65,8 @@ $socid = GETPOST("socid", 'int');
|
|||||||
if ($user->socid > 0) {
|
if ($user->socid > 0) {
|
||||||
$action = '';
|
$action = '';
|
||||||
$id = $user->socid;
|
$id = $user->socid;
|
||||||
|
} else {
|
||||||
|
$id = 0;
|
||||||
}
|
}
|
||||||
restrictedArea($user, 'societe', $id, '&societe', '', 'fk_soc', 'rowid', 0);
|
restrictedArea($user, 'societe', $id, '&societe', '', 'fk_soc', 'rowid', 0);
|
||||||
|
|
||||||
|
|||||||
@ -2535,12 +2535,12 @@ class Propal extends CommonObject
|
|||||||
$resql = $this->db->query($sql);
|
$resql = $this->db->query($sql);
|
||||||
if ($resql) {
|
if ($resql) {
|
||||||
// Status self::STATUS_REFUSED by default
|
// Status self::STATUS_REFUSED by default
|
||||||
$modelpdf = $conf->global->PROPALE_ADDON_PDF_ODT_CLOSED ? $conf->global->PROPALE_ADDON_PDF_ODT_CLOSED : $this->model_pdf;
|
$modelpdf = !empty($conf->global->PROPALE_ADDON_PDF_ODT_CLOSED) ? $conf->global->PROPALE_ADDON_PDF_ODT_CLOSED : $this->model_pdf;
|
||||||
$trigger_name = 'PROPAL_CLOSE_REFUSED';
|
$trigger_name = 'PROPAL_CLOSE_REFUSED';
|
||||||
|
|
||||||
if ($status == self::STATUS_SIGNED) { // Status self::STATUS_SIGNED
|
if ($status == self::STATUS_SIGNED) { // Status self::STATUS_SIGNED
|
||||||
$trigger_name = 'PROPAL_CLOSE_SIGNED';
|
$trigger_name = 'PROPAL_CLOSE_SIGNED';
|
||||||
$modelpdf = $conf->global->PROPALE_ADDON_PDF_ODT_TOBILL ? $conf->global->PROPALE_ADDON_PDF_ODT_TOBILL:$this->model_pdf;
|
$modelpdf = !empty($conf->global->PROPALE_ADDON_PDF_ODT_TOBILL) ? $conf->global->PROPALE_ADDON_PDF_ODT_TOBILL : $this->model_pdf;
|
||||||
|
|
||||||
// The connected company is classified as a client
|
// The connected company is classified as a client
|
||||||
$soc=new Societe($this->db);
|
$soc=new Societe($this->db);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user