Commit graph

133486 commits

Author SHA1 Message Date
Hasanuzzaman Sattar
648a58e869
NEW Dolibarr can now re-open ticket upon customer reply on the same ticket via email#28303 (#28451)
* #28303

* #28303

* #28303
2024-02-28 23:41:21 +01:00
MDW
7391ad42ed
Qual: Enable detection of deprecated modulename & GETPOST(...,'int') (#28457)
* Qual: Enable detection of deprecated modulename & GETPOST(...,'int')

# Qual: Enable detection of deprecated modulename & GETPOST(...,'int')

Enable phan rules to verify deprecated modulename usage and GETPOST(...,'int')
usage in the code.

* Qual: Try type hint on  to help avoid notification

* Qual: Accept 3 parameters for GETPOST to GETPOSTINT conversion

* Qual: Convert GETPOST(...,'int',VALUE) to GETPOSTINT(...,VALUE)

# Qual: Convert GETPOST(...,'int',VALUE) to GETPOSTINT(...,VALUE)

Following the update to the fixer to also convert GETPOST... with 3 parameters.
The files are now converted.
2024-02-28 23:25:16 +01:00
Sylvain Legrand
e827f0a5ab
Use the date pre-fill function also in edit mode (#28470)
* Use the date pre-fill function also in edit mode

Supports date prefill function (with last found dates) in row edit mode

* Update objectline_edit.tpl.php
2024-02-28 23:02:46 +01:00
MDW
c332251816
Fix: Replace deprecated module names in code strings (#28462)
* Fix: Replace deprecated module names in code strings

# Fix: Replace deprecated module names in code strings

A few cases that slipped through the manual replacements

* Qual: Enable deprecation notices in CodingPhpTest for isModEnabled

# Qual: Enable deprecation notices in CodingPhpTest for isModEnabled

As all detections are now fixed, we can enable the deprecation notice
trigger in the CodingPhpTest.
2024-02-28 23:01:01 +01:00
Frédéric FRANCE
1c3b46c680
Merge branch 'develop' into patch-11 2024-02-28 22:59:05 +01:00
Frédéric FRANCE
12757dda6f
Update .gitignore (#28513) 2024-02-28 22:57:30 +01:00
Frédéric FRANCE
20c1992aec
fix translate with memcached and multilangs (#28510)
* fix translate with memcached and multilangs

* fix
2024-02-28 22:56:00 +01:00
MDW
1b4a1510ec
Modify module mapping principle (#28511) 2024-02-28 22:47:28 +01:00
Frédéric FRANCE
e336c4e275
Merge branch 'develop' into patch-11 2024-02-28 21:58:23 +01:00
Frédéric FRANCE
eb6aa92359
fix isModEnabled for all case (#28465)
* Update conf.class.php

* new test

* new test

* new test

* ficheinter not fichinter
2024-02-28 21:43:23 +01:00
Mohamed DAOUD
3c1c6f61ff
warnings fix some php warnings (#28467) 2024-02-28 21:36:16 +01:00
Laurent Destailleur
32995e3b73 Fix #28478 2024-02-28 21:11:47 +01:00
lamrani abdelwadoud
d4a548a48f
Fix return method select_conditions_paiements (#28495) 2024-02-28 20:57:03 +01:00
Frédéric FRANCE
eda3b8e161
fix phpstan (#28497) 2024-02-28 20:36:53 +01:00
lamrani abdelwadoud
946abbfbd1
Fix variable and return in method (#28498) 2024-02-28 20:33:36 +01:00
lamrani abdelwadoud
c8f8286fa3
Fix return type in howdocuments (#28500) 2024-02-28 20:23:49 +01:00
lamrani abdelwadoud
67d6c98899
FIX return by adding null (#28502) 2024-02-28 20:22:17 +01:00
lamrani abdelwadoud
aea79e6fbf
FIX return type of return by adding null in return (#28503) 2024-02-28 20:21:29 +01:00
Laurent Destailleur
b666d17eed FIX #28504 2024-02-28 20:18:35 +01:00
Laurent Destailleur
6c5855c99f Clean code 2024-02-28 20:07:26 +01:00
lamrani abdelwadoud
b41020a801
Fix method by changing return type (#28507)
* FIX return method getListOfCharacterSet by adding null type

* Fix return method getListOfCollation by adding return null
2024-02-28 20:05:33 +01:00
Frédéric FRANCE
a5bc087126
Merge branch 'develop' into patch-11 2024-02-28 20:05:18 +01:00
lamrani abdelwadoud
7c36864ff9
FIX saveFile by adding null in return (#28508)
* FIX saveFile by adding null in return

* Update html_generic.modules.php

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-02-28 20:03:26 +01:00
daraelmin
d59e3e5bc8
FIX subscription must be editable when accounting isn't reconciled (#28469) 2024-02-28 18:54:41 +01:00
lamrani abdelwadoud
a0c4af7929
Fix amount type in api_invoices (#28475)
* Fix amount type in api_invoices

* Update api_invoices.class.php

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-02-28 18:52:05 +01:00
Mohamed DAOUD
a1462d6f29
Fix GETPOST to GETPOSTINT issue (#28506)
* Fix GETPOST to GETPOSTINT issue

* Update list.php

* Update list.php

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-02-28 18:40:53 +01:00
Frédéric FRANCE
94226d765a
Merge branch 'develop' into patch-11 2024-02-28 17:10:54 +01:00
MDW
cec3a6c8e8
Qual: Add AbstractRestApiTest class, refactor RestApiUserTest, add RestApiMosTest (#28484)
* New: AbstractRestAPITest class

* Qual: Create RestAPIMosTest
2024-02-28 17:03:53 +01:00
lamrani abdelwadoud
ccb562cc0b
FIX type of variable does not accept null (#28490) 2024-02-28 16:55:11 +01:00
lamrani abdelwadoud
0033429991
Fix type of ref in tva card (#28492) 2024-02-28 16:54:03 +01:00
lamrani abdelwadoud
c0cd4e1aaa
Fix return method by adding type int (#28493) 2024-02-28 16:52:30 +01:00
lamrani abdelwadoud
0f3009d821
Fix type of variable in Deplacement class (#28472) 2024-02-28 16:20:06 +01:00
Frédéric FRANCE
d4ced85527
fix phpstan (#28473) 2024-02-28 16:19:38 +01:00
lamrani abdelwadoud
00385af6f0
FIX type of multicurrency_amount (#28476) 2024-02-28 16:12:47 +01:00
lamrani abdelwadoud
1738347d20
FIX type of paiementCode by casting with string (#28477) 2024-02-28 16:09:19 +01:00
MDW
0b2ce5c2ae
Fix: author email (#28479) 2024-02-28 16:07:46 +01:00
Frédéric FRANCE
01b2e4a62c
fix phpstan (#28480) 2024-02-28 16:07:02 +01:00
MDW
abbec034c6
Qual: Several typing hints/some fixes. (#28483)
* Update documentation to improve static tool messages

* Suppress PhanPluginSuspiciousParamOrder

* Fix typing hint

* Fix typing hint (number->int)

* Fix typing hint (PDF->TCPDF)

* Fix typing hint (PDF->TCPDF)

* Modify code to hint typing check

* Correct Noop statement (createfromclone)

* Remove useless if/else with same result

* Suppress PhanRedefineFunctionInternal

* Suppress PhanParamSuspiciousOrder

* Suppress PhanPluginDuplicateArrayKey

* Suppress multiple phan messages

* Ignore PhanPluginSuspiciousParamOrder

* Add phan typing

* Remove useless if statement

* Remove useless if/else condition

* Remove useless if

* Remove useless if

* Join duplicate if/else statements

* Fix useless if

* Fix useless if

* Fix phan notice by optimizing 2**$i to 1<<$i
2024-02-28 15:36:29 +01:00
Frédéric FRANCE
fd8ad1f7c0
add css in list cron (#28487) 2024-02-28 15:27:16 +01:00
Eric Seigne
a2fb7884f9 precommit cleanup 2024-02-28 08:00:12 +01:00
Frédéric FRANCE
d7d88a7a0a
Merge branch 'develop' into patch-11 2024-02-27 20:39:45 +01:00
Eric Seigne
c34dbebcc5 fix search socid 2024-02-27 20:39:33 +01:00
Lamrani Abdel
0ca145bfd0 fix ref and verify date and time 2024-02-27 17:27:49 +01:00
Laurent Destailleur
768c4309d9 Merge 2024-02-27 17:07:58 +01:00
Laurent Destailleur
4f0dc0f0cf Test index hint 2024-02-27 17:06:17 +01:00
Lamrani Abdel
a6db30f1df fix ref and verify date and time 2024-02-27 16:53:59 +01:00
Frédéric FRANCE
83466972b2
Merge branch 'develop' into patch-11 2024-02-27 16:50:43 +01:00
Eric Seigne
737407c953 remove ! from string 2024-02-27 16:45:13 +01:00
MDW
92e790effe
Fix: GETPOST -> GETPOSTINT (#28460) 2024-02-27 16:43:04 +01:00
Frédéric FRANCE
8af8fc98da
fix phpstan (#28461) 2024-02-27 16:42:09 +01:00