2
0
forked from Wavyzz/dolibarr
Commit Graph

130483 Commits

Author SHA1 Message Date
MDW
3d3ef247c5 Fix: Replace deprecated php aliases with actual functions (#28419)
* Fix: Handle facture modulepart depr + optimise

# Fix: Handle facture modulepart depr + optimise

Add a case for 'facture' to 'invoice' conversion for the 'modulepart'
(issue seen when introducing DolDeprationHandler).
Use elseif for optimisation.

* Fix: Replace deprecated php aliases with actual functions

# Fix: Replace deprecated php aliases with actual functions

Replacements of join with implode.

* Fix: Replace deprecated php aliases with actual functions

# Fix: Replace deprecated php aliases with actual functions

Replacements of join with implode.

* Fix: Replace deprecated php aliases with actual functions

# Fix: Replace deprecated php aliases with actual functions

Replacements of join with implode.
2024-02-25 22:14:39 +01:00
Frédéric FRANCE
0de5807423 fix phpstan (#28416)
Default value of the parameter #8 $filterkey (string) of method FormResource::select_resource_list() is incompatible with type array.
2024-02-25 22:14:02 +01:00
Anthony Berton
6ab63d4f33 look and feel yes no (#28421)
Co-authored-by: Anthony Berton <anthony.berton@bb2a.fr>
2024-02-25 22:12:32 +01:00
Frédéric FRANCE
aa25dc5bdc fix phpstan (#28417)
Default value of the parameter #2 $array_options (int) of method Delivery::update_line() is incompatible with type array.
2024-02-25 22:11:44 +01:00
MDW
0d60041d8f Qual: Add custom phan plugin to detect var_dump (#28420)
# Qual: Add custom phan plugin to detect var_dump

This adds a custom plugin to detect the presence of var_dump.

Also disable a standard plugin in the extended configuration
(avoid reporting suggestions to add typing to the function
definitions (/declarations).
2024-02-25 22:11:25 +01:00
Frédéric FRANCE
75131fcc8f fix phpstan (#28414)
Default value of the parameter #7 $save_lastsearch_value (string) of method Categorie::getNomUrl() is incompatible with type int.
2024-02-25 22:10:38 +01:00
Frédéric FRANCE
7374dd9c2d fix phpstan (#28412)
Property CommonObject::$shipping_method_id (int) does not accept string.
2024-02-25 22:10:04 +01:00
Frédéric FRANCE
a1d90ada65 NEW Can setup phone mobile for the main company (#28410)
* setup phone mobile for mysoc

* clean code
2024-02-25 22:09:50 +01:00
Frédéric FRANCE
3f8376c2b8 fix odt templates lost (#28411) 2024-02-25 22:08:45 +01:00
MDW
acd8168cb6 Fix: Fix var_dump checker (#28226)
* Fix: Fix var_dump checker

# Fix: Fix var_dump checker

The core issue was that in PHP whitespace includes newlines by default, the m modifier
is needed to not match multilines.

* Fix: Allow multiple var_dumps on single comment line, refactor

# Fix: Allow multiple var_dumps on single comment line, refactor

Updated the regex to not match a var_dump preceeded with a comment
somewhere on the line.

Refactored var_dump check in dedicated method.

* Qual: Test the test function !

# Qual: Test the test function !

Test that the test function detecting var_dump does detect them.

* Qual: CodingPhpTest - remove comments from file before checking

# Qual: CodingPhpTest - remove comments from file before checking

This helps remove false positives and may have a positive impact on performance.

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-02-25 22:08:07 +01:00
Laurent Destailleur
181c70f116 Do not use mysql port on command line if value is 0 2024-02-25 21:53:35 +01:00
Laurent Destailleur
08a61c542a Restore dolPrintLabel 2024-02-25 20:53:42 +01:00
Laurent Destailleur
16b2cf2880 Fix creation of emailing 2024-02-25 20:41:58 +01:00
Laurent Destailleur
31cef09780 Merge branch '19.0' of git@github.com:Dolibarr/dolibarr.git into develop 2024-02-25 19:07:35 +01:00
Laurent Destailleur
c171ce2065 Fix bad function 2024-02-25 19:04:05 +01:00
Laurent Destailleur
87d25869ac Fix lost lines 2024-02-25 18:55:22 +01:00
Laurent Destailleur
0737d323b7 Merge branch '19.0' of git@github.com:Dolibarr/dolibarr.git into develop 2024-02-25 18:37:35 +01:00
Laurent Destailleur
2db3dc0eef Fix output for phpphan 2024-02-25 18:36:40 +01:00
Laurent Destailleur
66804093cd MQ and GP are same country for default vat definition 2024-02-25 18:27:57 +01:00
Laurent Destailleur
614af968c9 Merge branch '19.0' of git@github.com:Dolibarr/dolibarr.git into 19.0 2024-02-25 17:23:13 +01:00
Laurent Destailleur
4897d1eb97 Fix warning 2024-02-25 17:23:06 +01:00
Laurent Destailleur
076cde3005 Fix warning 2024-02-25 17:20:28 +01:00
Laurent Destailleur
0a9d454055 Fix revert 2024-02-25 17:01:37 +01:00
Laurent Destailleur
05914b4c78 Fix warning 2024-02-25 16:57:45 +01:00
Laurent Destailleur
0e74ad6da7 Merge branch '19.0' of git@github.com:Dolibarr/dolibarr.git into develop 2024-02-25 13:08:10 +01:00
Laurent Destailleur
4c3830b909 Fix set the default value 2024-02-25 13:06:31 +01:00
Laurent Destailleur
fca9ebe72f Fix field position 2024-02-25 12:59:42 +01:00
Laurent Destailleur
6fe6f6ab89 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2024-02-25 12:58:31 +01:00
Laurent Destailleur
b8acde3a43 Fix field position 2024-02-25 12:58:20 +01:00
Frédéric FRANCE
19427168c0 enhance warnings messages (#28409) 2024-02-25 10:06:21 +01:00
Frédéric FRANCE
b6fdae934a fix phpstan (#28405)
Method DolibarrApi::_checkValForAPI() should return string but returns array.
2024-02-25 10:05:26 +01:00
Frédéric FRANCE
5c33a3602d fix phpstan (#28404) 2024-02-25 10:05:11 +01:00
Frédéric FRANCE
b7b799b88e fix phpstan (#28403) 2024-02-25 10:04:57 +01:00
Laurent Destailleur
c159aff82f phpcs 2024-02-25 10:04:27 +01:00
Frédéric FRANCE
2cfeacbd1e fix phpstan (#28402) 2024-02-25 10:03:04 +01:00
Frédéric FRANCE
fe0123262d fix phpstan (#28401)
Property ProductCombinationLevel::$fk_product_attribute_combination (int) does not accept float.
2024-02-25 10:00:58 +01:00
Frédéric FRANCE
92103e2029 fix phpstan (#28399)
Property CommonObject::$fk_project (int) does not accept string.
2024-02-25 10:00:39 +01:00
Frédéric FRANCE
cac5d5e7c8 fix phpstan (#28398)
Property HookManager::$error (string) does not accept int.
2024-02-25 10:00:09 +01:00
Goldron
6876f9fcc3 Fixes an error by initializing ->line in the insert_discount method. (#28407)
* Fixes an error by initializing ->line in the insert_discount method.

* Update propal.class.php

---------

Co-authored-by: David IGREJA <david@siladel.fr>
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-02-25 09:58:24 +01:00
Frédéric FRANCE
af3761000a fix phpstan (#28406)
Property ExtraFields::$errno (string) does not accept int.
2024-02-25 09:56:46 +01:00
Frédéric FRANCE
8588e97364 fix phpstan (#28397)
Property CommonObject::$ref (string) does not accept int.
2024-02-25 09:56:23 +01:00
Frédéric FRANCE
fc432928ea fix phpstan (#28400)
* fix phpstan

Property PaymentVarious::$id (int) does not accept null.
Property PaymentVarious::$ref (string) does not accept null.

* Update emailcollector.lib.php
2024-02-25 09:56:05 +01:00
Frédéric FRANCE
a08cb4ca1e fix phpstan (#28408)
Property RecruitmentJobPosition::$import_key (string) does not accept null.
2024-02-25 09:55:47 +01:00
Jon Bendtsen
c9f718f1c1 Attempt at fixing #28070 with mobile phone to a thirdparty (#28110)
* NEW #28070 Adding mobile phone to thirdparty

* fix indenting

* trying to fix build errors

* too many parentases and missing;

* Update actions_card_common.class.php

---------

Co-authored-by: Jon Bendtsen <xcodeauthor@jonb.dk>
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-02-25 09:43:11 +01:00
Laurent Destailleur
b08e17e76d QUAL Rename all input fields "tel" into "phone" 2024-02-25 09:36:14 +01:00
Laurent Destailleur
34ad7e8670 Fix doxygen 2024-02-25 09:30:20 +01:00
Laurent Destailleur
5a0ae16c18 PERF: Performance enhancement on Invoice/Paiement area page 2024-02-25 09:28:14 +01:00
Laurent Destailleur
78622c24a0 Doc 2024-02-24 19:28:14 +01:00
Laurent Destailleur
64269f1597 Add phone_mobile for #28070 2024-02-24 19:24:37 +01:00
Laurent Destailleur
f216c742cb Add phone_mobile for #28070 2024-02-24 19:19:25 +01:00