forked from Dolibarr/dolibarr
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Qual: fix phpstan notices after fixing phan notices
- Loading branch information
Showing
4 changed files
with
9 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
* Copyright (C) 2004-2022 Laurent Destailleur <[email protected]> | ||
* Copyright (C) 2005-2012 Regis Houssin <[email protected]> | ||
* Copyright (C) 2015 Jean-François Ferry <[email protected]> | ||
* Copyright (C) 2024 MDW <[email protected]> | ||
* Copyright (C) 2024-2025 MDW <[email protected]> | ||
* Copyright (C) 2024 Frédéric France <[email protected]> | ||
* | ||
* This program is free software; you can redistribute it and/or modify | ||
|
@@ -471,7 +471,7 @@ | |
print '</table>'; | ||
print '</div>'; | ||
|
||
print $form->buttonsSaveCancel("Save", '', array(), 0, 'reposition'); | ||
print $form->buttonsSaveCancel("Save", '', array(), false, 'reposition'); | ||
|
||
print '</form>'; | ||
print "\n".'<!-- End Other Const -->'."\n"; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
* Copyright (C) 2004-2011 Laurent Destailleur <[email protected]> | ||
* Copyright (C) 2005-2012 Regis Houssin <[email protected]> | ||
* Copyright (C) 2015-2023 Frederic France <[email protected]> | ||
* Copyright (C) 2024 MDW <[email protected]> | ||
* Copyright (C) 2024-2025 MDW <[email protected]> | ||
* | ||
* This program is free software; you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
|
@@ -52,7 +52,7 @@ public function __construct($db, $param) | |
$this->db = $db; | ||
|
||
$listofmodulesforexternal = explode(',', getDolGlobalString('MAIN_MODULES_FOR_EXTERNAL')); | ||
$tmpentry = array('enabled' => (isModEnabled("product") || isModEnabled("service")), 'perms' => ($user->hasRight('produit', 'lire') || $user->hasRight('service', 'lire')), 'module' => 'product|service'); | ||
$tmpentry = array('enabled' => (int) (isModEnabled("product") || isModEnabled("service")), 'perms' => (string) (int) ($user->hasRight('produit', 'lire') || $user->hasRight('service', 'lire')), 'module' => 'product|service'); | ||
$showmode = isVisibleToUserType(($user->socid > 0 ? 1 : 0), $tmpentry, $listofmodulesforexternal); | ||
$this->hidden = ($showmode != 1); | ||
$this->urltoaddentry = DOL_URL_ROOT.'/product/card.php?action=create'; | ||
|
@@ -167,7 +167,7 @@ public function loadBox($max = 5) | |
$price = ($objp->price_base_type == 'HT') ? price($objp->price) : $price = price($objp->price_ttc); | ||
} else { | ||
//Parse the dynamic price | ||
$productstatic->fetch($objp->rowid, '', '', 1); | ||
$productstatic->fetch($objp->rowid, '', '', '1'); | ||
|
||
require_once DOL_DOCUMENT_ROOT.'/product/dynamic_price/class/price_parser.class.php'; | ||
$priceparser = new PriceParser($this->db); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
* Copyright (C) 2005-2012 Maxime Kohlhaas <[email protected]> | ||
* Copyright (C) 2015-2021 Frédéric France <[email protected]> | ||
* Copyright (C) 2015 Juanjo Menent <[email protected]> | ||
* Copyright (C) 2024 MDW <[email protected]> | ||
* Copyright (C) 2024-2025 MDW <[email protected]> | ||
* | ||
* This program is free software; you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
|
@@ -54,7 +54,7 @@ public function __construct($db, $param = '') | |
$this->db = $db; | ||
|
||
$listofmodulesforexternal = explode(',', getDolGlobalString('MAIN_MODULES_FOR_EXTERNAL')); | ||
$tmpentry = array('enabled' => ((isModEnabled("product") || isModEnabled("service")) && isModEnabled('stock')), 'perms' => $user->hasRight('stock', 'lire'), 'module' => 'product|service|stock'); | ||
$tmpentry = array('enabled' => (int) ((isModEnabled("product") || isModEnabled("service")) && isModEnabled('stock')), 'perms' => (string) (int) $user->hasRight('stock', 'lire'), 'module' => 'product|service|stock'); | ||
$showmode = isVisibleToUserType(($user->socid > 0 ? 1 : 0), $tmpentry, $listofmodulesforexternal); | ||
$this->hidden = ($showmode != 1); | ||
$this->urltoaddentry = DOL_URL_ROOT.'/product/card.php?action=create'; | ||
|
@@ -163,7 +163,7 @@ public function loadBox($max = 5) | |
$price_base_type = $langs->trans($objp->price_base_type); | ||
$price = ($objp->price_base_type == 'HT') ? price($objp->price) : $price = price($objp->price_ttc); | ||
} else { //Parse the dynamic price | ||
$productstatic->fetch($objp->rowid, '', '', 1); | ||
$productstatic->fetch($objp->rowid, '', '', '1'); | ||
|
||
require_once DOL_DOCUMENT_ROOT.'/product/dynamic_price/class/price_parser.class.php'; | ||
$priceparser = new PriceParser($this->db); | ||
|