fix phpstan (#31761)

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* hide new error with phpstan 1.12.9
This commit is contained in:
Frédéric FRANCE 2024-11-10 23:47:14 +01:00 committed by GitHub
parent 37df9c3524
commit 92ef950e6d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
53 changed files with 220 additions and 485 deletions

View File

@ -260,16 +260,6 @@ parameters:
count: 2
path: ../../htdocs/accountancy/class/accountancyexport.class.php
-
message: "#^If condition is always true\\.$#"
count: 1
path: ../../htdocs/accountancy/class/accountancyexport.class.php
-
message: "#^Left side of \\|\\| is always true\\.$#"
count: 1
path: ../../htdocs/accountancy/class/accountancyexport.class.php
-
message: "#^Negated boolean expression is always true\\.$#"
count: 1
@ -280,6 +270,11 @@ parameters:
count: 6
path: ../../htdocs/accountancy/class/accountancyexport.class.php
-
message: "#^Right side of \\|\\| is always true\\.$#"
count: 1
path: ../../htdocs/accountancy/class/accountancyexport.class.php
-
message: "#^Variable \\$archiveFullName in empty\\(\\) always exists and is always falsy\\.$#"
count: 1
@ -1040,11 +1035,6 @@ parameters:
count: 2
path: ../../htdocs/admin/agenda_reminder.php
-
message: "#^Variable \\$form might not be defined\\.$#"
count: 1
path: ../../htdocs/admin/agenda_xcal.php
-
message: "#^Variable \\$errorsaved in empty\\(\\) always exists and is always falsy\\.$#"
count: 1
@ -1060,11 +1050,6 @@ parameters:
count: 1
path: ../../htdocs/admin/dav.php
-
message: "#^Variable \\$form might not be defined\\.$#"
count: 3
path: ../../htdocs/admin/dav.php
-
message: "#^Variable \\$param in empty\\(\\) always exists and is not falsy\\.$#"
count: 1
@ -1125,21 +1110,11 @@ parameters:
count: 2
path: ../../htdocs/admin/expensereport_rules.php
-
message: "#^Variable \\$form might not be defined\\.$#"
count: 2
path: ../../htdocs/admin/fckeditor.php
-
message: "#^Variable \\$result might not be defined\\.$#"
count: 1
path: ../../htdocs/admin/fediverse.php
-
message: "#^Variable \\$form might not be defined\\.$#"
count: 1
path: ../../htdocs/admin/fichinter_xcal.php
-
message: "#^Negated boolean expression is always true\\.$#"
count: 1
@ -1445,11 +1420,6 @@ parameters:
count: 1
path: ../../htdocs/admin/system/filecheck.php
-
message: "#^Variable \\$form might not be defined\\.$#"
count: 1
path: ../../htdocs/admin/system/filecheck.php
-
message: "#^Ternary operator condition is always false\\.$#"
count: 1
@ -1645,11 +1615,6 @@ parameters:
count: 1
path: ../../htdocs/ai/admin/setup.php
-
message: "#^Variable \\$form might not be defined\\.$#"
count: 1
path: ../../htdocs/api/admin/index.php
-
message: "#^Unable to resolve the template type T in call to method DolibarrApi\\:\\:_cleanObjectDatas\\(\\)$#"
count: 1
@ -2095,11 +2060,6 @@ parameters:
count: 11
path: ../../htdocs/asset/tpl/depreciation_options_edit.tpl.php
-
message: "#^Variable \\$form might not be defined\\.$#"
count: 1
path: ../../htdocs/asset/tpl/depreciation_options_edit.tpl.php
-
message: "#^Variable \\$langs might not be defined\\.$#"
count: 4
@ -2120,11 +2080,6 @@ parameters:
count: 1
path: ../../htdocs/asset/tpl/depreciation_options_view.tpl.php
-
message: "#^Variable \\$form might not be defined\\.$#"
count: 1
path: ../../htdocs/asset/tpl/depreciation_options_view.tpl.php
-
message: "#^Variable \\$langs might not be defined\\.$#"
count: 7
@ -2145,11 +2100,6 @@ parameters:
count: 1
path: ../../htdocs/asset/tpl/depreciation_view.tpl.php
-
message: "#^Variable \\$form might not be defined\\.$#"
count: 1
path: ../../htdocs/asset/tpl/depreciation_view.tpl.php
-
message: "#^Variable \\$langs might not be defined\\.$#"
count: 7
@ -2350,21 +2300,6 @@ parameters:
count: 1
path: ../../htdocs/bom/tpl/objectline_create.tpl.php
-
message: "#^Variable \\$form might not be defined\\.$#"
count: 9
path: ../../htdocs/bom/tpl/objectline_create.tpl.php
-
message: "#^Variable \\$langs might not be defined\\.$#"
count: 18
path: ../../htdocs/bom/tpl/objectline_create.tpl.php
-
message: "#^Variable \\$this might not be defined\\.$#"
count: 3
path: ../../htdocs/bom/tpl/objectline_create.tpl.php
-
message: "#^Variable \\$action might not be defined\\.$#"
count: 1
@ -2420,21 +2355,6 @@ parameters:
count: 1
path: ../../htdocs/bom/tpl/objectline_title.tpl.php
-
message: "#^Variable \\$action might not be defined\\.$#"
count: 1
path: ../../htdocs/bom/tpl/objectline_title.tpl.php
-
message: "#^Variable \\$form might not be defined\\.$#"
count: 6
path: ../../htdocs/bom/tpl/objectline_title.tpl.php
-
message: "#^Variable \\$langs might not be defined\\.$#"
count: 14
path: ../../htdocs/bom/tpl/objectline_title.tpl.php
-
message: "#^Property CommonDict\\:\\:\\$label \\(string\\) in isset\\(\\) is not nullable\\.$#"
count: 1
@ -3420,11 +3340,6 @@ parameters:
count: 4
path: ../../htdocs/comm/mailing/list.php
-
message: "#^Variable \\$form might not be defined\\.$#"
count: 1
path: ../../htdocs/comm/multiprix.php
-
message: "#^If condition is always false\\.$#"
count: 1
@ -4550,11 +4465,6 @@ parameters:
count: 1
path: ../../htdocs/compta/bank/various_payment/info.php
-
message: "#^Variable \\$form might not be defined\\.$#"
count: 1
path: ../../htdocs/compta/bank/various_payment/info.php
-
message: "#^Variable \\$formproject might not be defined\\.$#"
count: 1
@ -4665,11 +4575,6 @@ parameters:
count: 2
path: ../../htdocs/compta/clients.php
-
message: "#^Variable \\$form might not be defined\\.$#"
count: 1
path: ../../htdocs/compta/deplacement/list.php
-
message: "#^Variable \\$fileurl_avg might not be defined\\.$#"
count: 1
@ -5930,21 +5835,11 @@ parameters:
count: 1
path: ../../htdocs/compta/prelevement/list.php
-
message: "#^Variable \\$arrayfields might not be defined\\.$#"
count: 2
path: ../../htdocs/compta/prelevement/orders_list.php
-
message: "#^Variable \\$contextpage in empty\\(\\) always exists and is not falsy\\.$#"
count: 1
path: ../../htdocs/compta/prelevement/orders_list.php
-
message: "#^Variable \\$form might not be defined\\.$#"
count: 5
path: ../../htdocs/compta/prelevement/orders_list.php
-
message: "#^Variable \\$nbignored might not be defined\\.$#"
count: 1
@ -6230,11 +6125,6 @@ parameters:
count: 2
path: ../../htdocs/compta/sociales/payments.php
-
message: "#^Variable \\$form might not be defined\\.$#"
count: 1
path: ../../htdocs/compta/sociales/payments.php
-
message: "#^Parameter \\#4 \\$month of function dol_mktime expects int, array\\|string given\\.$#"
count: 2
@ -6680,11 +6570,6 @@ parameters:
count: 4
path: ../../htdocs/compta/tva/index.php
-
message: "#^Variable \\$form might not be defined\\.$#"
count: 2
path: ../../htdocs/compta/tva/info.php
-
message: "#^Parameter \\#4 \\$month of function dol_mktime expects int, array\\|string given\\.$#"
count: 2
@ -12220,11 +12105,6 @@ parameters:
count: 1
path: ../../htdocs/core/search_page.php
-
message: "#^Variable \\$form might not be defined\\.$#"
count: 1
path: ../../htdocs/core/search_page.php
-
message: "#^Variable \\$type2label might not be defined\\.$#"
count: 1
@ -12330,71 +12210,16 @@ parameters:
count: 2
path: ../../htdocs/core/tpl/card_presend.tpl.php
-
message: "#^Variable \\$form might not be defined\\.$#"
count: 1
path: ../../htdocs/core/tpl/commonfields_add.tpl.php
-
message: "#^Variable \\$formadmin might not be defined\\.$#"
count: 1
path: ../../htdocs/core/tpl/commonfields_add.tpl.php
-
message: "#^Variable \\$langs might not be defined\\.$#"
count: 3
path: ../../htdocs/core/tpl/commonfields_add.tpl.php
-
message: "#^Variable \\$object might not be defined\\.$#"
count: 4
path: ../../htdocs/core/tpl/commonfields_add.tpl.php
-
message: "#^Variable \\$db might not be defined\\.$#"
count: 1
path: ../../htdocs/core/tpl/commonfields_edit.tpl.php
-
message: "#^Variable \\$form might not be defined\\.$#"
count: 1
path: ../../htdocs/core/tpl/commonfields_edit.tpl.php
-
message: "#^Variable \\$formadmin might not be defined\\.$#"
count: 1
path: ../../htdocs/core/tpl/commonfields_edit.tpl.php
-
message: "#^Variable \\$langs might not be defined\\.$#"
count: 3
path: ../../htdocs/core/tpl/commonfields_edit.tpl.php
-
message: "#^Variable \\$object might not be defined\\.$#"
count: 12
path: ../../htdocs/core/tpl/commonfields_edit.tpl.php
-
message: "#^Variable \\$db might not be defined\\.$#"
count: 1
path: ../../htdocs/core/tpl/commonfields_view.tpl.php
-
message: "#^Variable \\$form might not be defined\\.$#"
count: 1
path: ../../htdocs/core/tpl/commonfields_view.tpl.php
-
message: "#^Variable \\$langs might not be defined\\.$#"
count: 12
path: ../../htdocs/core/tpl/commonfields_view.tpl.php
-
message: "#^Variable \\$object might not be defined\\.$#"
count: 13
path: ../../htdocs/core/tpl/commonfields_view.tpl.php
-
message: "#^Negated boolean expression is always true\\.$#"
count: 1
@ -12415,36 +12240,11 @@ parameters:
count: 4
path: ../../htdocs/core/tpl/contacts.tpl.php
-
message: "#^Variable \\$form might not be defined\\.$#"
count: 5
path: ../../htdocs/core/tpl/contacts.tpl.php
-
message: "#^Variable \\$hookmanager might not be defined\\.$#"
count: 1
path: ../../htdocs/core/tpl/contacts.tpl.php
-
message: "#^Variable \\$langs might not be defined\\.$#"
count: 28
path: ../../htdocs/core/tpl/contacts.tpl.php
-
message: "#^Variable \\$objectsrc might not be defined\\.$#"
count: 3
path: ../../htdocs/core/tpl/contacts.tpl.php
-
message: "#^Variable \\$permission might not be defined\\.$#"
count: 1
path: ../../htdocs/core/tpl/contacts.tpl.php
-
message: "#^Variable \\$user might not be defined\\.$#"
count: 17
path: ../../htdocs/core/tpl/contacts.tpl.php
-
message: "#^Variable \\$action might not be defined\\.$#"
count: 3
@ -12465,26 +12265,11 @@ parameters:
count: 1
path: ../../htdocs/core/tpl/document_actions_post_headers.tpl.php
-
message: "#^Variable \\$form might not be defined\\.$#"
count: 1
path: ../../htdocs/core/tpl/document_actions_post_headers.tpl.php
-
message: "#^Variable \\$hookmanager might not be defined\\.$#"
count: 2
path: ../../htdocs/core/tpl/document_actions_post_headers.tpl.php
-
message: "#^Variable \\$modulepart might not be defined\\.$#"
count: 3
path: ../../htdocs/core/tpl/document_actions_post_headers.tpl.php
-
message: "#^Variable \\$object might not be defined\\.$#"
count: 7
path: ../../htdocs/core/tpl/document_actions_post_headers.tpl.php
-
message: "#^Variable \\$permissiontoadd might not be defined\\.$#"
count: 2
@ -12610,31 +12395,11 @@ parameters:
count: 4
path: ../../htdocs/core/tpl/extrafields_view.tpl.php
-
message: "#^Variable \\$db might not be defined\\.$#"
count: 3
path: ../../htdocs/core/tpl/extrafields_view.tpl.php
-
message: "#^Variable \\$form might not be defined\\.$#"
count: 1
path: ../../htdocs/core/tpl/extrafields_view.tpl.php
-
message: "#^Variable \\$hookmanager might not be defined\\.$#"
count: 4
path: ../../htdocs/core/tpl/extrafields_view.tpl.php
-
message: "#^Variable \\$langs might not be defined\\.$#"
count: 5
path: ../../htdocs/core/tpl/extrafields_view.tpl.php
-
message: "#^Variable \\$user might not be defined\\.$#"
count: 11
path: ../../htdocs/core/tpl/extrafields_view.tpl.php
-
message: "#^Ternary operator condition is always true\\.$#"
count: 1
@ -12685,21 +12450,6 @@ parameters:
count: 1
path: ../../htdocs/core/tpl/list_print_subtotal.tpl.php
-
message: "#^Variable \\$db might not be defined\\.$#"
count: 2
path: ../../htdocs/core/tpl/list_print_total.tpl.php
-
message: "#^Variable \\$form might not be defined\\.$#"
count: 2
path: ../../htdocs/core/tpl/list_print_total.tpl.php
-
message: "#^Variable \\$langs might not be defined\\.$#"
count: 7
path: ../../htdocs/core/tpl/list_print_total.tpl.php
-
message: "#^Variable \\$limit might not be defined\\.$#"
count: 2
@ -12720,16 +12470,6 @@ parameters:
count: 5
path: ../../htdocs/core/tpl/object_currency_amount.tpl.php
-
message: "#^Variable \\$form might not be defined\\.$#"
count: 5
path: ../../htdocs/core/tpl/object_currency_amount.tpl.php
-
message: "#^Variable \\$langs might not be defined\\.$#"
count: 4
path: ../../htdocs/core/tpl/object_currency_amount.tpl.php
-
message: "#^Variable \\$object might not be defined\\.$#"
count: 3
@ -12770,16 +12510,6 @@ parameters:
count: 1
path: ../../htdocs/core/tpl/object_discounts.tpl.php
-
message: "#^Variable \\$form might not be defined\\.$#"
count: 4
path: ../../htdocs/core/tpl/object_discounts.tpl.php
-
message: "#^Variable \\$langs might not be defined\\.$#"
count: 12
path: ../../htdocs/core/tpl/object_discounts.tpl.php
-
message: "#^Variable \\$object might not be defined\\.$#"
count: 5
@ -12845,11 +12575,6 @@ parameters:
count: 1
path: ../../htdocs/core/tpl/objectline_create.tpl.php
-
message: "#^Variable \\$form might not be defined\\.$#"
count: 12
path: ../../htdocs/core/tpl/objectline_create.tpl.php
-
message: "#^Variable \\$seller might not be defined\\.$#"
count: 4
@ -12875,11 +12600,6 @@ parameters:
count: 3
path: ../../htdocs/core/tpl/objectline_edit.tpl.php
-
message: "#^Variable \\$form might not be defined\\.$#"
count: 8
path: ../../htdocs/core/tpl/objectline_edit.tpl.php
-
message: "#^Variable \\$i might not be defined\\.$#"
count: 2
@ -12905,11 +12625,6 @@ parameters:
count: 2
path: ../../htdocs/core/tpl/objectline_title.tpl.php
-
message: "#^Variable \\$form might not be defined\\.$#"
count: 4
path: ../../htdocs/core/tpl/objectline_title.tpl.php
-
message: "#^Variable \\$outputalsopricetotalwithtax might not be defined\\.$#"
count: 1
@ -12930,11 +12645,6 @@ parameters:
count: 2
path: ../../htdocs/core/tpl/objectline_view.tpl.php
-
message: "#^Variable \\$form might not be defined\\.$#"
count: 3
path: ../../htdocs/core/tpl/objectline_view.tpl.php
-
message: "#^Variable \\$i might not be defined\\.$#"
count: 5
@ -13200,11 +12910,6 @@ parameters:
count: 2
path: ../../htdocs/core/website.inc.php
-
message: "#^Variable \\$form might not be defined\\.$#"
count: 1
path: ../../htdocs/cron/admin/cron.php
-
message: "#^Left side of && is always false\\.$#"
count: 1
@ -13365,11 +13070,6 @@ parameters:
count: 1
path: ../../htdocs/datapolicy/admin/setup.php
-
message: "#^Variable \\$form might not be defined\\.$#"
count: 1
path: ../../htdocs/datapolicy/admin/setup.php
-
message: "#^If condition is always false\\.$#"
count: 3
@ -14950,11 +14650,6 @@ parameters:
count: 3
path: ../../htdocs/exports/export.php
-
message: "#^Variable \\$form might not be defined\\.$#"
count: 1
path: ../../htdocs/externalsite/admin/index.php
-
message: "#^Variable \\$heightforframes might not be defined\\.$#"
count: 1
@ -16870,21 +16565,6 @@ parameters:
count: 1
path: ../../htdocs/hrm/compare.php
-
message: "#^Variable \\$form might not be defined\\.$#"
count: 3
path: ../../htdocs/hrm/compare.php
-
message: "#^Variable \\$form might not be defined\\.$#"
count: 1
path: ../../htdocs/hrm/core/tpl/objectline_title.tpl.php
-
message: "#^Variable \\$langs might not be defined\\.$#"
count: 4
path: ../../htdocs/hrm/core/tpl/objectline_title.tpl.php
-
message: "#^Variable \\$action might not be defined\\.$#"
count: 1
@ -16910,26 +16590,11 @@ parameters:
count: 1
path: ../../htdocs/hrm/core/tpl/skilldet.fiche.tpl.php
-
message: "#^Variable \\$form might not be defined\\.$#"
count: 4
path: ../../htdocs/hrm/core/tpl/skilldet.fiche.tpl.php
-
message: "#^Variable \\$moreparam might not be defined\\.$#"
count: 4
path: ../../htdocs/hrm/core/tpl/skilldet.fiche.tpl.php
-
message: "#^Variable \\$note_private might not be defined\\.$#"
count: 3
path: ../../htdocs/hrm/core/tpl/skilldet.fiche.tpl.php
-
message: "#^Variable \\$note_public might not be defined\\.$#"
count: 3
path: ../../htdocs/hrm/core/tpl/skilldet.fiche.tpl.php
-
message: "#^Variable \\$permission might not be defined\\.$#"
count: 4
@ -17040,11 +16705,6 @@ parameters:
count: 1
path: ../../htdocs/hrm/position.php
-
message: "#^Variable \\$form might not be defined\\.$#"
count: 8
path: ../../htdocs/hrm/position.php
-
message: "#^Variable \\$job might not be defined\\.$#"
count: 1
@ -19005,6 +18665,11 @@ parameters:
count: 1
path: ../../htdocs/opensurvey/class/opensurveysondage.class.php
-
message: "#^Unreachable statement \\- code above always terminates\\.$#"
count: 1
path: ../../htdocs/opensurvey/exportcsv.php
-
message: "#^Empty array passed to foreach\\.$#"
count: 1
@ -19260,11 +18925,6 @@ parameters:
count: 2
path: ../../htdocs/partnership/partnership_list.php
-
message: "#^Variable \\$form might not be defined\\.$#"
count: 3
path: ../../htdocs/paybox/admin/paybox.php
-
message: "#^Variable \\$IBS_DEVISE in empty\\(\\) always exists and is not falsy\\.$#"
count: 1
@ -19350,21 +19010,11 @@ parameters:
count: 1
path: ../../htdocs/product/canvas/product/tpl/card_create.tpl.php
-
message: "#^Variable \\$form might not be defined\\.$#"
count: 2
path: ../../htdocs/product/canvas/product/tpl/card_create.tpl.php
-
message: "#^Variable \\$refalreadyexists might not be defined\\.$#"
count: 1
path: ../../htdocs/product/canvas/product/tpl/card_create.tpl.php
-
message: "#^Variable \\$form might not be defined\\.$#"
count: 2
path: ../../htdocs/product/canvas/product/tpl/card_edit.tpl.php
-
message: "#^Property ActionsCardService\\:\\:\\$field_list has no type specified\\.$#"
count: 1
@ -19380,11 +19030,6 @@ parameters:
count: 1
path: ../../htdocs/product/canvas/service/tpl/card_create.tpl.php
-
message: "#^Variable \\$form might not be defined\\.$#"
count: 2
path: ../../htdocs/product/canvas/service/tpl/card_create.tpl.php
-
message: "#^Variable \\$refalreadyexists might not be defined\\.$#"
count: 1
@ -19395,11 +19040,6 @@ parameters:
count: 2
path: ../../htdocs/product/canvas/service/tpl/card_create.tpl.php
-
message: "#^Variable \\$form might not be defined\\.$#"
count: 2
path: ../../htdocs/product/canvas/service/tpl/card_edit.tpl.php
-
message: "#^Negated boolean expression is always true\\.$#"
count: 2
@ -20375,11 +20015,6 @@ parameters:
count: 2
path: ../../htdocs/product/stock/info.php
-
message: "#^Variable \\$form might not be defined\\.$#"
count: 1
path: ../../htdocs/product/stock/info.php
-
message: "#^Variable \\$formproject might not be defined\\.$#"
count: 1
@ -20990,16 +20625,6 @@ parameters:
count: 2
path: ../../htdocs/product/stock/tpl/stockcorrection.tpl.php
-
message: "#^Variable \\$form might not be defined\\.$#"
count: 3
path: ../../htdocs/product/stock/tpl/stockcorrection.tpl.php
-
message: "#^Variable \\$form might not be defined\\.$#"
count: 3
path: ../../htdocs/product/stock/tpl/stocktransfer.tpl.php
-
message: "#^Variable \\$object might not be defined\\.$#"
count: 9
@ -23855,11 +23480,6 @@ parameters:
count: 1
path: ../../htdocs/salaries/virement_request.php
-
message: "#^Variable \\$form might not be defined\\.$#"
count: 8
path: ../../htdocs/salaries/virement_request.php
-
message: "#^Variable \\$numOfBp might not be defined\\.$#"
count: 1
@ -24395,36 +24015,16 @@ parameters:
count: 1
path: ../../htdocs/societe/project.php
-
message: "#^Variable \\$action might not be defined\\.$#"
count: 2
path: ../../htdocs/societe/tpl/linesalesrepresentative.tpl.php
-
message: "#^Variable \\$db might not be defined\\.$#"
count: 1
path: ../../htdocs/societe/tpl/linesalesrepresentative.tpl.php
-
message: "#^Variable \\$form might not be defined\\.$#"
count: 2
path: ../../htdocs/societe/tpl/linesalesrepresentative.tpl.php
-
message: "#^Variable \\$langs might not be defined\\.$#"
count: 4
path: ../../htdocs/societe/tpl/linesalesrepresentative.tpl.php
-
message: "#^Variable \\$object might not be defined\\.$#"
count: 4
path: ../../htdocs/societe/tpl/linesalesrepresentative.tpl.php
-
message: "#^Variable \\$user might not be defined\\.$#"
count: 3
path: ../../htdocs/societe/tpl/linesalesrepresentative.tpl.php
-
message: "#^Variable \\$contextpage in empty\\(\\) always exists and is not falsy\\.$#"
count: 1
@ -24495,31 +24095,6 @@ parameters:
count: 2
path: ../../htdocs/supplier_proposal/card.php
-
message: "#^Parameter \\#2 \\$minute of function dol_mktime expects int, array\\|string given\\.$#"
count: 2
path: ../../htdocs/supplier_proposal/card.php
-
message: "#^Parameter \\#3 \\$second of function dol_mktime expects int, array\\|string given\\.$#"
count: 2
path: ../../htdocs/supplier_proposal/card.php
-
message: "#^Parameter \\#4 \\$month of function dol_mktime expects int, array\\|string given\\.$#"
count: 4
path: ../../htdocs/supplier_proposal/card.php
-
message: "#^Parameter \\#5 \\$day of function dol_mktime expects int, array\\|string given\\.$#"
count: 4
path: ../../htdocs/supplier_proposal/card.php
-
message: "#^Parameter \\#6 \\$year of function dol_mktime expects int, array\\|string given\\.$#"
count: 4
path: ../../htdocs/supplier_proposal/card.php
-
message: "#^Result of && is always false\\.$#"
count: 1
@ -25765,11 +25340,6 @@ parameters:
count: 3
path: ../../htdocs/user/perms.php
-
message: "#^Variable \\$form might not be defined\\.$#"
count: 3
path: ../../htdocs/variants/admin/admin.php
-
message: "#^Left side of && is always true\\.$#"
count: 1
@ -26590,11 +26160,6 @@ parameters:
count: 1
path: ../../htdocs/zapier/admin/setup.php
-
message: "#^Variable \\$form might not be defined\\.$#"
count: 2
path: ../../htdocs/zapier/admin/setup.php
-
message: "#^Left side of && is always false\\.$#"
count: 3

View File

@ -34,6 +34,7 @@ require_once DOL_DOCUMENT_ROOT.'/core/lib/agenda.lib.php';
/**
* @var Conf $conf
* @var DoliDB $db
* @var Form $form
* @var HookManager $hookmanager
* @var Translate $langs
* @var User $user

View File

@ -30,6 +30,7 @@ require_once DOL_DOCUMENT_ROOT.'/dav/dav.lib.php';
/**
* @var Conf $conf
* @var DoliDB $db
* @var Form $form
* @var HookManager $hookmanager
* @var Translate $langs
* @var User $user

View File

@ -35,6 +35,7 @@ require_once DOL_DOCUMENT_ROOT.'/core/class/doleditor.class.php';
/**
* @var Conf $conf
* @var DoliDB $db
* @var Form $form
* @var HookManager $hookmanager
* @var Translate $langs
* @var User $user

View File

@ -35,6 +35,7 @@ require_once DOL_DOCUMENT_ROOT.'/core/lib/fichinter.lib.php';
/**
* @var Conf $conf
* @var DoliDB $db
* @var Form $form
* @var HookManager $hookmanager
* @var Translate $langs
* @var User $user

View File

@ -33,6 +33,7 @@ require_once DOL_DOCUMENT_ROOT.'/core/lib/geturl.lib.php';
/**
* @var Conf $conf
* @var DoliDB $db
* @var Form $form
* @var HookManager $hookmanager
* @var Translate $langs
* @var User $user

View File

@ -35,6 +35,7 @@ require_once DOL_DOCUMENT_ROOT.'/core/lib/files.lib.php';
/**
* @var Conf $conf
* @var DoliDB $db
* @var Form $form
* @var HookManager $hookmanager
* @var Translate $langs
* @var User $user

View File

@ -29,6 +29,7 @@
/**
* @var Conf $conf
* @var DoliDB $db
* @var Form $form
* @var HookManager $hookmanager
*/

View File

@ -26,15 +26,17 @@
* $parameters
*/
/**
* @var Form $form
* @var HookManager $hookmanager
*/
// Protection to avoid direct call of template
if (empty($object) || !is_object($object)) {
print "Error, template page can't be called as URL";
exit(1);
}
/**
* @var HookManager $hookmanager
*/
if (!is_object($form)) {
$form = new Form($db);

View File

@ -26,16 +26,17 @@
* $parameters
*/
/**
* @var Form $form
* @var HookManager $hookmanager
*/
// Protection to avoid direct call of template
if (empty($object) || !is_object($object)) {
print "Error, template page can't be called as URL";
exit(1);
}
/**
* @var HookManager $hookmanager
*/
if (!is_object($form)) {
$form = new Form($db);
}

View File

@ -1,15 +1,15 @@
<?php
/* Copyright (C) 2010-2012 Regis Houssin <regis.houssin@inodbox.com>
* Copyright (C) 2010-2014 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2012-2013 Christophe Battarel <christophe.battarel@altairis.fr>
* Copyright (C) 2012 Cédric Salvador <csalvador@gpcsolutions.fr>
* Copyright (C) 2014 Florian Henry <florian.henry@open-concept.pro>
* Copyright (C) 2014 Raphaël Doursenaud <rdoursenaud@gpcsolutions.fr>
* Copyright (C) 2015-2016 Marcos García <marcosgdf@gmail.com>
* Copyright (C) 2018-2019 Frédéric France <frederic.france@netlogic.fr>
* Copyright (C) 2018 Ferran Marcet <fmarcet@2byte.es>
* Copyright (C) 2024 Vincent Maury <vmaury@timgroup.fr>
* Copyright (C) 2024 MDW <mdeweerd@users.noreply.github.com>
/* Copyright (C) 2010-2012 Regis Houssin <regis.houssin@inodbox.com>
* Copyright (C) 2010-2014 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2012-2013 Christophe Battarel <christophe.battarel@altairis.fr>
* Copyright (C) 2012 Cédric Salvador <csalvador@gpcsolutions.fr>
* Copyright (C) 2014 Florian Henry <florian.henry@open-concept.pro>
* Copyright (C) 2014 Raphaël Doursenaud <rdoursenaud@gpcsolutions.fr>
* Copyright (C) 2015-2016 Marcos García <marcosgdf@gmail.com>
* Copyright (C) 2018-2024 Frédéric France <frederic.france@free.fr>
* Copyright (C) 2018 Ferran Marcet <fmarcet@2byte.es>
* Copyright (C) 2024 Vincent Maury <vmaury@timgroup.fr>
* Copyright (C) 2024 MDW <mdeweerd@users.noreply.github.com>
*
* 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
@ -33,6 +33,14 @@
require_once DOL_DOCUMENT_ROOT."/product/class/html.formproduct.class.php";
/**
* @var CommonObject $this
* @var CommonObject $object
* @var Form $form
* @var Societe $buyer
* @var Translate $langs
*/
// Protection to avoid direct call of template
if (empty($object) || !is_object($object)) {
print "Error: this template page cannot be called directly as an URL";

View File

@ -6,6 +6,7 @@
* Copyright (C) 2012-2014 Raphaël Doursenaud <rdoursenaud@gpcsolutions.fr>
* Copyright (C) 2013 Florian Henry <florian.henry@open-concept.pro>
* Copyright (C) 2017 Juanjo Menent <jmenent@2byte.es>
* Copyright (C) 2024 Frédéric France <frederic.france@free.fr>
*
* 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
@ -32,6 +33,14 @@
*
* $type, $text, $description, $line
*/
/**
* @var CommonObject $this
* @var CommonObject $object
* @var Form $form
* @var Translate $langs
*
* @var string $action
*/
// Protection to avoid direct call of template
if (empty($object) || !is_object($object)) {

View File

@ -32,6 +32,7 @@ require_once DOL_DOCUMENT_ROOT.'/contact/class/contact.class.php';
/**
* @var Conf $conf
* @var DoliDB $db
* @var Form $form
* @var HookManager $hookmanager
* @var Translate $langs
* @var User $user

View File

@ -33,6 +33,7 @@ require_once DOL_DOCUMENT_ROOT.'/projet/class/project.class.php';
/**
* @var Conf $conf
* @var DoliDB $db
* @var Form $form
* @var HookManager $hookmanager
* @var Translate $langs
* @var User $user

View File

@ -4,7 +4,7 @@
* Copyright (C) 2004 Eric Seigne <eric.seigne@ryxeo.com>
* Copyright (C) 2005-2011 Regis Houssin <regis.houssin@inodbox.com>
* Copyright (C) 2012 Juanjo Menent <jmenent@2byte.es>
* Copyright (C) 2018 charlene Benke <charlie@patas-monkey.com>
* Copyright (C) 2018 charlene Benke <charlie@patas-monkey.com>
* Copyright (C) 2024 Frédéric France <frederic.france@free.fr>
*
* This program is free software; you can redistribute it and/or modify
@ -36,6 +36,7 @@ require_once DOL_DOCUMENT_ROOT.'/core/lib/date.lib.php';
/**
* @var Conf $conf
* @var DoliDB $db
* @var Form $form
* @var HookManager $hookmanager
* @var Translate $langs
* @var User $user

View File

@ -34,6 +34,7 @@ require_once DOL_DOCUMENT_ROOT.'/compta/bank/class/account.class.php';
/**
* @var Conf $conf
* @var DoliDB $db
* @var Form $form
* @var HookManager $hookmanager
* @var Translate $langs
* @var User $user

View File

@ -47,6 +47,7 @@ if (isModEnabled('accounting')) {
/**
* @var Conf $conf
* @var DoliDB $db
* @var Form $form
* @var HookManager $hookmanager
* @var Translate $langs
* @var User $user

View File

@ -32,6 +32,7 @@ require_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php';
/**
* @var Conf $conf
* @var DoliDB $db
* @var Form $form
* @var HookManager $hookmanager
* @var Translate $langs
* @var User $user

View File

@ -44,6 +44,7 @@ require_once '../main.inc.php';
/**
* @var Conf $conf
* @var DoliDB $db
* @var Form $form
* @var HookManager $hookmanager
* @var Translate $langs
* @var User $user

View File

@ -23,8 +23,16 @@
* $langs
* $form
*/
'@phan-var-force FormAdmin $formAdmin';
/**
* @var CommonObject $object
* @var Conf $conf
* @var Form $form
* @var FormAdmin $formadmin
* @var Translate $langs
*
* @var string $action
*/
'@phan-var-force FormAdmin $formadmin';
// Protection to avoid direct call of template
if (empty($conf) || !is_object($conf)) {

View File

@ -24,6 +24,16 @@
* $form
*/
/**
* @var CommonObject $object
* @var Conf $conf
* @var Form $form
* @var FormAdmin $formadmin
* @var Translate $langs
*
* @var string $action
*/
// Protection to avoid direct call of template
if (empty($conf) || !is_object($conf)) {
print "Error, template page can't be called as URL";

View File

@ -1,5 +1,6 @@
<?php
/* Copyright (C) 2017 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2024 Frédéric France <frederic.france@free.fr>
*
* 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
@ -23,6 +24,16 @@
* $keyforbreak may be defined to key to switch on second column
*/
/**
* @var CommonObject $object
* @var Conf $conf
* @var Form $form
* @var FormAdmin $formadmin
* @var Translate $langs
*
* @var string $action
*/
// Protection to avoid direct call of template
if (empty($conf) || !is_object($conf)) {
print "Error, template page can't be called as URL";

View File

@ -24,7 +24,14 @@
*
* $preselectedtypeofcontact may be defined or not
*/
/**
* @var ?CommonObject $object
* @var ?CommonObject $objectsrc
* @var Form $form
* @var Translate $langs
* @var User $user
* @var ?string $permission
*/
// Protection to avoid direct call of template
if (empty($object) || !is_object($object)) {
print "Error, template page can't be called as URL";

View File

@ -3,6 +3,7 @@
* Copyright (C) 2013-2014 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2015 Marcos García <marcosgdf@gmail.com>
* Copyright (C) 2019 Nicolas ZABOURI <info@inovea-conseil.com>
* Copyright (C) 2024 Frédéric France <frederic.france@free.fr>
*
* 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
@ -28,7 +29,12 @@
// $object
// $filearray
// $savingdocmask = dol_sanitizeFileName($object->ref).'-__file__';
/**
* @var CommonObject $object
* @var Form $form
* @var HookManager $hookmanager
* @var Translate $langs
*/
// Protection to avoid direct call of template
if (empty($langs) || !is_object($langs)) {
print "Error, template page can't be called as URL";

View File

@ -1,7 +1,7 @@
<?php
/* Copyright (C) 2014 Maxime Kohlhaas <support@atm-consulting.fr>
* Copyright (C) 2014 Juanjo Menent <jmenent@2byte.es>
* Copyright (C) 2021 Frédéric France <frederic.france@netlogic.fr>
/* Copyright (C) 2014 Maxime Kohlhaas <support@atm-consulting.fr>
* Copyright (C) 2014 Juanjo Menent <jmenent@2byte.es>
* Copyright (C) 2021-2024 Frédéric France <frederic.france@free.fr>
*
* 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
@ -25,7 +25,14 @@
* $parameters
* $cols
*/
/**
* @var CommonObject $object
* @var Conf $conf
* @var DoliDB $db
* @var Form $form
* @var Translate $langs
* @var User $user
*/
// Protection to avoid direct call of template
if (empty($object) || !is_object($object)) {
print "Error, template page can't be called as URL";

View File

@ -1,7 +1,26 @@
<?php
/* Copyright (C) 2024 Frédéric France <frederic.france@free.fr>
*
* 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
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
*/
/**
* @var DoliDB $db
* @var Form $form
* @var Translate $langs
*/
'@phan-var-force array{nbfield:int,type?:array<int,string>,pos?:array<int,int>,val?:array<int,float>} $totalarray';
// Move fields of totalizable into the common array pos and val

View File

@ -1,5 +1,6 @@
<?php
/* Copyright (C) 2024 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2024 Frédéric France <frederic.france@free.fr>
*
* 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
@ -22,7 +23,10 @@
* $conf
* $langs
*/
/**
* @var Form $form
* @var Translate $langs
*/
// Protection to avoid direct call of template
if (empty($conf) || !is_object($conf)) {
print "Error, template page can't be called as URL";

View File

@ -24,7 +24,10 @@
* $cannotApplyDiscount Set it to prevent form to apply discount
* $backtopage URL to come back to from discount modification pages
*/
/**
* @var Form $form
* @var Translate $langs
*/
print '<!-- BEGIN object_discounts.tpl.php -->'."\n";
$objclassname = get_class($object);

View File

@ -39,6 +39,7 @@
* @var CommonObject $this
* @var CommonObject $object
* @var CommonObjectLine $line
* @var Form $form
* @var HookManager $hookmanager
* @var Translate $langs
* @var User $user

View File

@ -39,6 +39,7 @@
* @var CommonObject $this
* @var CommonObject $object
* @var CommonObjectLine $line
* @var Form $form
* @var HookManager $hookmanager
* @var Translate $langs
* @var User $user

View File

@ -39,6 +39,7 @@
* @var CommonObject $this
* @var CommonObject $object
* @var CommonObjectLine $line
* @var Form $form
* @var HookManager $hookmanager
* @var Translate $langs
* @var User $user

View File

@ -45,6 +45,7 @@
* @var CommonObject $this
* @var CommonObjectLine $line
* @var Conf $conf
* @var Form $form
* @var HookManager $hookmanager
* @var ?Product $product_static
* @var Societe $mysoc

View File

@ -33,6 +33,7 @@ require_once DOL_DOCUMENT_ROOT.'/core/lib/cron.lib.php';
/**
* @var Conf $conf
* @var DoliDB $db
* @var Form $form
* @var HookManager $hookmanager
* @var Translate $langs
* @var User $user

View File

@ -32,6 +32,7 @@ require_once DOL_DOCUMENT_ROOT.'/datapolicy/lib/datapolicy.lib.php';
/**
* @var Conf $conf
* @var DoliDB $db
* @var Form $form
* @var HookManager $hookmanager
* @var Translate $langs
* @var User $user

View File

@ -38,6 +38,7 @@ require_once DOL_DOCUMENT_ROOT.'/core/lib/admin.lib.php';
/**
* @var Conf $conf
* @var DoliDB $db
* @var Form $form
* @var HookManager $hookmanager
* @var Translate $langs
* @var User $user

View File

@ -48,6 +48,7 @@ require_once DOL_DOCUMENT_ROOT . '/hrm/lib/hrm.lib.php';
/**
* @var Conf $conf
* @var DoliDB $db
* @var Form $form
* @var HookManager $hookmanager
* @var Translate $langs
* @var User $user

View File

@ -10,6 +10,7 @@
* Copyright (C) 2021 Greg Rastklan <greg.rastklan@atm-consulting.fr>
* Copyright (C) 2021 Jean-Pascal BOUDET <jean-pascal.boudet@atm-consulting.fr>
* Copyright (C) 2021 Grégory BLEMAND <gregory.blemand@atm-consulting.fr>
* Copyright (C) 2024 Frédéric France <frederic.france@free.fr>
*
* 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
@ -36,6 +37,10 @@
*
* $type, $text, $description, $line
*/
/**
* @var Form $form
* @var Translate $langs
*/
// Protection to avoid direct call of template
if (empty($object) || !is_object($object)) {

View File

@ -11,6 +11,7 @@
* Copyright (C) 2021 Jean-Pascal BOUDET <jean-pascal.boudet@atm-consulting.fr>
* Copyright (C) 2021 Grégory BLEMAND <gregory.blemand@atm-consulting.fr>
* Copyright (C) 2024 MDW <mdeweerd@users.noreply.github.com>
* Copyright (C) 2024 Frédéric France <frederic.france@free.fr>
*
* 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
@ -42,6 +43,11 @@
* $text, $description, $line
*/
/**
* @var Form $form
* @var Translate $langs
*/
// Protection to avoid direct call of template
if (empty($object) || !is_object($object)) {
print "Error, template page can't be called as URL";

View File

@ -1,5 +1,27 @@
<?php
/* Copyright (C) 2024 MDW <mdeweerd@users.noreply.github.com>
/* Copyright (C) 2024 MDW <mdeweerd@users.noreply.github.com>
* Copyright (C) 2024 Frédéric France <frederic.france@free.fr>
*
* 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
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
/**
* @var Form $form
* @var Translate $langs
*
* @var string $note_public
* @var string $note_private
*/
// Protection to avoid direct call of template

View File

@ -43,6 +43,7 @@ require_once DOL_DOCUMENT_ROOT . '/core/lib/company.lib.php';
/**
* @var Conf $conf
* @var DoliDB $db
* @var Form $form
* @var HookManager $hookmanager
* @var Translate $langs
* @var User $user
@ -62,9 +63,9 @@ $optioncss = GETPOST('optioncss', 'aZ'); // Option for the css output (always
$backtopage = GETPOST('backtopage', 'alpha');
$backtopageforcancel = GETPOST('backtopageforcancel', 'alpha');
$id = GETPOSTINT('id');
$ref = GETPOST('ref', 'alpha');
$fk_job = (GETPOSTISSET('fk_job') ? GETPOSTINT('fk_job') : $id);
$id = GETPOSTINT('id');
$ref = GETPOST('ref', 'alpha');
$fk_job = (GETPOSTISSET('fk_job') ? GETPOSTINT('fk_job') : $id);
$fk_user = GETPOSTINT('fk_user');
//$start_date = date('Y-m-d', GETPOST('date_startyear', 'int').'-'.GETPOST('date_startmonth', 'int').'-'.GETPOST('date_startday', 'int'));
$start_date = dol_mktime(0, 0, 0, GETPOSTINT('date_startmonth'), GETPOSTINT('date_startday'), GETPOSTINT('date_startyear'));

View File

@ -34,6 +34,7 @@ $servicename = 'PayBox';
/**
* @var Conf $conf
* @var DoliDB $db
* @var Form $form
* @var HookManager $hookmanager
* @var Societe $mysoc
* @var Translate $langs

View File

@ -17,6 +17,7 @@
*/
/**
* @var Conf $conf
* @var Form $form
* @var Translate $langs
* @var User $user
*/

View File

@ -17,6 +17,7 @@
*/
/**
* @var Conf $conf
* @var Form $form
* @var Translate $langs
* @var User $user
*/

View File

@ -17,6 +17,7 @@
*/
/**
* @var Conf $conf
* @var Form $form
* @var Translate $langs
* @var User $user
*/

View File

@ -17,6 +17,7 @@
*/
/**
* @var Conf $conf
* @var Form $form
* @var Translate $langs
* @var User $user
*/

View File

@ -31,6 +31,7 @@ require_once DOL_DOCUMENT_ROOT.'/core/lib/stock.lib.php';
/**
* @var Conf $conf
* @var DoliDB $db
* @var Form $form
* @var HookManager $hookmanager
* @var Translate $langs
* @var User $user

View File

@ -23,6 +23,7 @@
/**
* @var Conf $conf
* @var DoliDB $db
* @var Form $form
* @var Product|MouvementStock $object
* @var FormProduct $formproduct
* @var FormProjets $formproject

View File

@ -23,6 +23,7 @@
/**
* @var Conf $conf
* @var DoliDB $db
* @var Form $form
* @var Product|MouvementStock $object
* @var FormProduct $formproduct
* @var Translate $langs

View File

@ -60,6 +60,7 @@ if (isModEnabled('project')) {
/**
* @var Conf $conf
* @var DoliDB $db
* @var Form $form
* @var HookManager $hookmanager
* @var Translate $langs
* @var User $user

View File

@ -1,5 +1,6 @@
<?php
/* Copyright (C) 2017 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2024 Frédéric France <frederic.france@free.fr>
*
* 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
@ -14,7 +15,14 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
/**
* @var Conf $conf
* @var Form $form
* @var Translate $langs
* @var User $user
*
* @var string $action
*/
// Protection to avoid direct call of template
if (empty($conf) || !is_object($conf)) {
print "Error, template page can't be called as URL";

View File

@ -118,8 +118,8 @@ if ($id > 0 || !empty($ref)) {
// Common permissions
$usercanread = $user->hasRight('supplier_proposal', 'lire');
$usercancreate = $user->hasRight('supplier_proposal', 'creer');
$usercandelete = $user->hasRight('supplier_proposal', 'supprimer');
$usercancreate = $user->hasRight('supplier_proposal', 'creer');
$usercandelete = $user->hasRight('supplier_proposal', 'supprimer');
// Advanced permissions
$usercanvalidate = ((!getDolGlobalString('MAIN_USE_ADVANCED_PERMS') && !empty($usercancreate)) || (getDolGlobalString('MAIN_USE_ADVANCED_PERMS') && $user->hasRight('supplier_proposal', 'validate_advance')));
@ -279,7 +279,7 @@ if (empty($reshook)) {
$object->socid = $socid;
$object->fetch_thirdparty();
$date_delivery = dol_mktime(12, 0, 0, GETPOST('liv_month'), GETPOST('liv_day'), GETPOST('liv_year'));
$date_delivery = dol_mktime(12, 0, 0, GETPOSTINT('liv_month'), GETPOSTINT('liv_day'), GETPOSTINT('liv_year'));
if ($socid < 1) {
setEventMessages($langs->trans("ErrorFieldRequired", $langs->transnoentitiesnoconv("Supplier")), null, 'errors');
@ -602,8 +602,8 @@ if (empty($reshook)) {
// Set if we used free entry or predefined product
$predef = '';
$product_desc = (GETPOSTISSET('dp_desc') ? GETPOST('dp_desc', 'restricthtml') : '');
$date_start = dol_mktime(GETPOST('date_start'.$predef.'hour'), GETPOST('date_start'.$predef.'min'), GETPOST('date_start'.$predef.'sec'), GETPOST('date_start'.$predef.'month'), GETPOST('date_start'.$predef.'day'), GETPOST('date_start'.$predef.'year'));
$date_end = dol_mktime(GETPOST('date_end'.$predef.'hour'), GETPOST('date_end'.$predef.'min'), GETPOST('date_end'.$predef.'sec'), GETPOST('date_end'.$predef.'month'), GETPOST('date_end'.$predef.'day'), GETPOST('date_end'.$predef.'year'));
$date_start = dol_mktime(GETPOST('date_start'.$predef.'hour'), GETPOSTINT('date_start'.$predef.'min'), GETPOSTINT('date_start'.$predef.'sec'), GETPOSTINT('date_start'.$predef.'month'), GETPOSTINT('date_start'.$predef.'day'), GETPOSTINT('date_start'.$predef.'year'));
$date_end = dol_mktime(GETPOST('date_end'.$predef.'hour'), GETPOSTINT('date_end'.$predef.'min'), GETPOSTINT('date_end'.$predef.'sec'), GETPOSTINT('date_end'.$predef.'month'), GETPOSTINT('date_end'.$predef.'day'), GETPOSTINT('date_end'.$predef.'year'));
$ref_supplier = GETPOST('fourn_ref', 'alpha');
@ -1369,7 +1369,7 @@ if ($action == 'create') {
print '<tr><td>'.$langs->trans("DeliveryDate").'</td>';
print '<td colspan="2">';
print img_picto('', 'action', 'class="pictofixedwidth"');
$datedelivery = dol_mktime(0, 0, 0, GETPOST('liv_month'), GETPOST('liv_day'), GETPOST('liv_year'));
$datedelivery = dol_mktime(0, 0, 0, GETPOSTINT('liv_month'), GETPOSTINT('liv_day'), GETPOSTINT('liv_year'));
if (is_numeric(getDolGlobalString('DATE_LIVRAISON_WEEK_DELAY'))) { // If value set to 0 or a num, not empty
$tmpdte = time() + (7 * getDolGlobalInt('DATE_LIVRAISON_WEEK_DELAY') * 24 * 60 * 60);
$syear = date("Y", $tmpdte);

View File

@ -25,6 +25,7 @@ require_once DOL_DOCUMENT_ROOT.'/core/lib/product.lib.php';
/**
* @var Conf $conf
* @var DoliDB $db
* @var Form $form
* @var HookManager $hookmanager
* @var Translate $langs
* @var User $user

View File

@ -32,6 +32,7 @@ require_once DOL_DOCUMENT_ROOT . '/zapier/lib/zapier.lib.php';
/**
* @var Conf $conf
* @var DoliDB $db
* @var Form $form
* @var HookManager $hookmanager
* @var Translate $langs
* @var User $user