mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Fix warning
This commit is contained in:
parent
a211d117f1
commit
130a2dc4f7
|
|
@ -310,8 +310,8 @@ class Setup extends DolibarrApi
|
|||
/**
|
||||
* Get region by ID.
|
||||
*
|
||||
* @param int $id ID of region
|
||||
* @return array Array of cleaned object properties
|
||||
* @param int $id ID of region
|
||||
* @return Object Object with cleaned properties
|
||||
*
|
||||
* @url GET dictionary/regions/{id}
|
||||
*
|
||||
|
|
@ -325,8 +325,8 @@ class Setup extends DolibarrApi
|
|||
/**
|
||||
* Get region by Code.
|
||||
*
|
||||
* @param string $code Code of region
|
||||
* @return array Array of cleaned object properties
|
||||
* @param string $code Code of region
|
||||
* @return Object Object with cleaned properties
|
||||
*
|
||||
* @url GET dictionary/regions/byCode/{code}
|
||||
*
|
||||
|
|
|
|||
|
|
@ -83,9 +83,9 @@ abstract class ModelePDFFactures extends CommonDocGenerator
|
|||
/**
|
||||
* Get the SwissQR object, including validation
|
||||
*
|
||||
* @param Facture $object Invoice object
|
||||
* @param Translate $langs Translation object
|
||||
* @return SwissQrBill|bool The valid SwissQR object, or false
|
||||
* @param Facture $object Invoice object
|
||||
* @param Translate $langs Translation object
|
||||
* @return SwissQrBill\QrBill|bool The valid SwissQR object, or false
|
||||
*/
|
||||
private function getSwissQrBill(Facture $object, Translate $langs)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1382,14 +1382,14 @@ if ($dirins && $action == 'initobject' && $module && $objectname) {
|
|||
// Regenerate left menu entry in descriptor for $objectname
|
||||
$stringtoadd = "
|
||||
\$this->menu[\$r++]=array(
|
||||
'fk_menu'=>'fk_mainmenu=mymodule',
|
||||
'type'=>'left',
|
||||
'fk_menu'=>'fk_mainmenu=mymodule',
|
||||
'type'=>'left',
|
||||
'titre'=>'MyObject',
|
||||
'prefix' => img_picto('', \$this->picto, 'class=\"paddingright pictofixedwidth valignmiddle\"'),
|
||||
'mainmenu'=>'mymodule',
|
||||
'leftmenu'=>'myobject',
|
||||
'url'=>'/mymodule/myobject_list.php',
|
||||
'langs'=>'mymodule@mymodule',
|
||||
'langs'=>'mymodule@mymodule',
|
||||
'position'=>1000+\$r,
|
||||
'enabled'=>'\$conf->testmodule->enabled',
|
||||
'perms'=>'1',
|
||||
|
|
@ -2610,7 +2610,7 @@ if ($dirins && $action == "modify_menu" && GETPOST('menukey', 'int')) {
|
|||
}
|
||||
if ($result < 0) {
|
||||
setEventMessages($langs->trans('ErrorMenuExistValue'), null, 'errors');
|
||||
header("Location: ".$_SERVER["PHP_SELF"].'?action=editmenu&token='.newToken().'&menukey='.urlencode($key+1).'&tab='.urlencode($tab).'&module='.urlencode($module).'&tabobj='.$key+1);
|
||||
header("Location: ".$_SERVER["PHP_SELF"].'?action=editmenu&token='.newToken().'&menukey='.urlencode($key+1).'&tab='.urlencode($tab).'&module='.urlencode($module).'&tabobj='.($key+1));
|
||||
exit;
|
||||
}
|
||||
setEventMessages($langs->trans('MenuUpdatedSuccessfuly'), null);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user