2
0
forked from Wavyzz/dolibarr
Commit Graph

9831 Commits

Author SHA1 Message Date
Laurent Destailleur
6f7b0c1815 NeW Can add the info messages (error, waring...) at the top of the stack 2024-09-30 14:30:28 +02:00
lamrani abdelwadoud
0ec1d2b750 Add token oauth for social network (#30813)
* Add token oauth for social network

* Fix phpstan errors

* Fix phpstan errors

* variable undeclared and phan errors

* variable undeclared and phan errors

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-09-29 22:36:08 +02:00
MDW
42bb4fbf3e Qual: Enable & fix or ignore Invalid DimOffset (#31176)
* Qual: Enable & fix or ignore Invalid DimOffset

# Qual: Enable & fix or ignore Invalid DimOffset

The Invalid DimOffset notices occur when array keys are defined and
the index used is not amongst the known array keys.

This PR enables these notices and fixes array definitions when needed,
or ignores the notices locally if it's a false positive, or in the
baseline.txt when it does not seem to be a false positive so that
it can be fixed later

* Nullable object typing in function signature not ok for 7.0/8.4

Can't user '?User' as argument type for PHP7.0 which is required by PHP8.4.
Therefore, removing the typing specification in the function definition

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-09-29 21:52:31 +02:00
Frédéric FRANCE
0a9142661f add phpdoc (#31175)
* add phpdoc

* add phpdoc

* add phpdoc

* add phpdoc

* fix broken doc

* fix broken doc

* fix

* fix

* fix

* fix

* fix

* fix
2024-09-29 03:10:45 +02:00
Frédéric FRANCE
0e1292e253 fix phpstan (#31177)
* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan
2024-09-29 02:49:34 +02:00
MDW
0da4d51003 Qual: Fix multiple phan notifications (#31151)
* Qual: Fix notifications multiple files

# Qual: Fix notifications multiple files

Fixes to files with UnknownObject notices, fixing other
notices in these files as well

* Improve boxes typing

* Qual: Extend accepted types to reduce notices

* Fix type for GET/POST arguments of GETPOST* calls
2024-09-28 12:09:35 +02:00
Laurent Destailleur
84183adaaa WIP Captcha 2024-09-27 19:31:28 +02:00
lamrani abdelwadoud
5c43f600ef New function for Hide other params when choose Oauth (#31108)
* Add token oauth for social network

* Fix phpstan errors

* Fix phpstan errors

* variable undeclared and phan errors

* variable undeclared and phan errors

* reformat script and add function for hide other params

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-09-26 22:33:22 +02:00
Frédéric FRANCE
c4074310bb fix phpstan (#31147)
Variable $optioncss in isset() always exists and is not nullable.
2024-09-26 22:23:08 +02:00
lamrani abdelwadoud
c4ffa090b2 New redirect when deploy module (#31109)
* New redirect when deploy module

* initialize variable

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-09-26 17:43:23 +02:00
MDW
ec07381f2c Qual: More specific ignoreErrors for phpstan (#31113)
* Qual: More specific ignoreErrors for phpstan

# Qual: More specific ignoreErrors for phpstan

More specific ignore expressions helps identify new exceptions that
would have matched the more generic ignore expressions.

It also helps to progressively solve phpstan notices
in smaller steps by modifying the expressions

* CamelCase for dictFieldList

* Update phan baseline
2024-09-26 17:42:40 +02:00
Laurent Destailleur
f966523f79 Restore default pdf format to default 2024-09-26 04:37:44 +02:00
Laurent Destailleur
bb1b2e9452 Fix phan 2024-09-25 23:52:19 +02:00
Laurent Destailleur
b32225283d Merge branch '20.0' of github.com:Dolibarr/dolibarr into develop 2024-09-25 22:32:36 +02:00
Frédéric FRANCE
a94cff63a7 fix phpstan (#31102)
* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan
2024-09-25 22:21:31 +02:00
Laurent Destailleur
59dadd88a3 FIX Duplicate trigger printFieldPreListTitle 2024-09-25 13:43:11 +02:00
Laurent Destailleur
6bd128071b NEW Default PDF format is PDF/A-3 2024-09-25 12:48:23 +02:00
sonikf
0e590151a0 fix #31089 (#31092) 2024-09-23 15:01:53 +02:00
Frédéric FRANCE
000173c7b9 fix phpstan (#31075)
* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-09-23 01:59:14 +02:00
MDW
7b4c4d772c Qual: Fix notices for FormSms, RssParser, ExpenseReportIk and related (#31086)
* Qual: Fix Array of tabs typing hints

# Qual: Fix Array of tabs typing hints

Fixed same typing hints accross several files

* Qual: Fix pdf.lib.php, project.lib.php and related files

# Qual: Fix pdf.lib.php, project.lib.php and related files

Fix most phan notices for pdf.lib.php and project.lib.php.
And fixed some items in other files in the process

* Qual: Fix notifications commande/card advtarget.tpl fichinter/card societe/card supplier_proposal/card

* Qual: Fix notices for FormSms, RssParser, ExpenseReportIk and related

# Qual: Fix notices for FormSms, RssParser, ExpenseReportIk and related

Fix notices in the files for the classes above and other files to accomodate
these changes/fixes
2024-09-23 00:37:30 +02:00
Frédéric FRANCE
f6776541b6 Fix ignored phpstan (#31009)
* fix phpstan

* fix phpstan

* fix phpstan
2024-09-20 02:19:05 +02:00
MDW
4c7bcaa980 Qual: Fix argument mismatch for form_attach_new_file (#31014)
# Qual: Fix argument mismatch for form_attach_new_file

Use null instead of '' to match the argument type for form_attach_new_file.
2024-09-20 02:14:31 +02:00
Frédéric FRANCE
e252e36073 fix phpstan (#31024)
* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan
2024-09-20 01:45:17 +02:00
Laurent Destailleur
c340c34aeb FIX Hide a feature that is a security vulnerability. 2024-09-20 00:19:36 +02:00
Laurent Destailleur
0ba26aacdd FIX Debug option WORKFLOW_TICKET_LINK_CONTRACT. Bad id stored. Bad
condition to activate it. Bad position in setup. Bad selection of
catrogy on setup.
2024-09-19 22:51:33 +02:00
MDW
099dbd9c1e Qual: Fix notices for htdocs/admin/* (#30982)
* Fix (Possibly)UndeclaredGlobalVariable

* Update phan baseline

* Fix (Possibly)UndeclaredGlobalVariable (2)

* Qual: Fix notices for htdocs/admin/*

# Qual: Fix notices for htdocs/admin/*

Fixes most phan/phpstan noticies for files under htdocs/admin/* and ai.
2024-09-18 03:27:25 +02:00
Frédéric FRANCE
d5fe4f998a fix phpstan (#30989)
* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan
2024-09-18 02:45:54 +02:00
Frédéric FRANCE
1e4d36dfd2 fix phan (#31005)
* fix phan

* fix

* fix

* fix

* fix

* Update baseline.txt

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-09-18 00:58:16 +02:00
lamrani abdelwadoud
e1200132f1 Delete params of social network (#30745)
* Delete params of social network

* Add translation

* Fix errors

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-09-17 15:23:36 +02:00
Laurent Destailleur
37d9e6e9e9 Fix search on string that include partial html content 2024-09-17 14:00:37 +02:00
Laurent Destailleur
30c212c732 Fix text 2024-09-17 12:24:46 +02:00
MDW
9a9e851494 Qual: Fix new UndeclaredGlobalVariable notices & enable (#30963)
* Qual: 🛟 Fix typing

Qual: Fix typing

Fix some typing currently failing ci in develop.

* Fix typing for grabimages

* Qual: Fix new UndeclaredGlobalVariable notices & enable

# Qual: Fix new UndeclaredGlobalVariable notices & enable

This fixes several new notices regarding 'undeclared globals' which
mostly correspond to missing initialisations in views and some real
bugs where the variable name was incorrect.
Some less obvious cases are unsolved and ignored (adherents/list,
and fourn/commande/card).

This is in preparation of fixing the notices in the other files
where the baseline was already set to ignore them where most just
need a phan-var-force declaration which will help with verifying
type compatibity and object member verifications
2024-09-16 01:50:58 +02:00
MDW
115627a054 Qual: Fix PhanPluginUnknownObjectMethodCall where is the only phan notice (#30957)
* Qual: PhanPluginUnknownObjectMethodCall where it is the only phan notice

# Qual: PhanPluginUnknownObjectMethodCall where it is the only phan notice

Fix PhanPluginUnknownObjectMethodCall in files where it is the only phan notice

* Update phan baseline

* Fix $website global type in some contexts
2024-09-16 01:49:38 +02:00
Laurent Destailleur
3bf7bab967 Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into develop 2024-09-12 02:21:46 +02:00
Laurent Destailleur
a52963020d Doc 2024-09-12 02:21:14 +02:00
Laurent Destailleur
b1ee18864f Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into develop 2024-09-12 01:43:43 +02:00
Laurent Destailleur
0d62dc8ecd Give an help to allow to fix charset regression. 2024-09-12 01:41:30 +02:00
Laurent Destailleur
90dcb105f0 Fix option INVOICE_DISABLE_REPLACEMENT 2024-09-11 15:56:04 +02:00
William Mead
fb6677010d NEW contract signed status update (#30779)
* Moved signed status constants to array dictionary

* Added getLibSignedStatus & getSignedStatusLocalisedArray methods

* Updated fetch & create methods for signed_status

* Added signed status to status badge

* Updated signed_status module builder field

* Added object context signed status for action trigger

* Added signed status to contract list

* Fixed signed status for contract list

* Added sign, unsign, confirm_sign, confirm_unsign actions. Added sign button.

* Fixed old contract without signed status

* Added contract modify notification

* Added contract signed status update

* Updated EN localizations

* Fixed contract notification administration

* Fixed notification message

* Fixed contract status badge

* Fixed langs

* Fixed langs key

* Fixed duplicate localization
2024-09-10 03:04:49 +02:00
Laurent Destailleur
613c25b5ff Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into develop 2024-09-10 02:02:16 +02:00
Laurent Destailleur
ba60cabb39 Allow only version string 2024-09-09 23:14:42 +02:00
Laurent Destailleur
ffeef2f058 Doc 2024-09-09 23:10:34 +02:00
Laurent Destailleur
8889642fa4 Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into develop 2024-09-09 04:16:29 +02:00
Laurent Destailleur
359cd1473f Fix trans 2024-09-09 04:16:02 +02:00
Laurent Destailleur
74330f0a14 Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into develop 2024-09-08 22:16:01 +02:00
Laurent Destailleur
c7ccca10ed Fix warning 2024-09-07 19:39:10 +02:00
Laurent Destailleur
8fcaffbd72 Fix help tooltip for email setup 2024-09-07 19:15:58 +02:00
Laurent Destailleur
6167f8c039 Fix doc 2024-09-07 15:24:53 +02:00
Laurent Destailleur
a5fcf7e0e4 Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into develop 2024-09-07 14:22:19 +02:00
Laurent Destailleur
db5bfa7b7c Fix loop to show SPF was not complete 2024-09-07 14:21:40 +02:00