Commit Graph

131049 Commits

Author SHA1 Message Date
Laurent Destailleur
9cc32d70d2 Clean code 2024-03-11 18:25:48 +01:00
Laurent Destailleur
cf617547b5 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2024-03-11 16:39:58 +01:00
Laurent Destailleur
404d594f24 Removed not used file 2024-03-11 16:39:44 +01:00
Laurent Destailleur
01c3808478 Merge pull request #28618 from solution-libre/fix-cloned-supplier-order-creation-date
FIX cloned supplier order creation date as now
2024-03-11 16:34:35 +01:00
Laurent Destailleur
b963a9ab36 Fix phpunit 2024-03-11 16:30:33 +01:00
Laurent Destailleur
2cbeca6d4f Merge pull request #28668 from atm-john/fix_element_type_part_04
NEW : Factoring and Fix external module elementType limit - Part 04
2024-03-11 16:29:34 +01:00
Laurent Destailleur
553587b660 Update DoliDB.class.php 2024-03-11 16:27:46 +01:00
Laurent Destailleur
5b921d0dc4 Update DoliDB.class.php 2024-03-11 16:26:17 +01:00
Laurent Destailleur
93638f3980 Merge pull request #28667 from atm-john/fix_element_type_part_03
NEW : Factoring and Fix external module elementType limit - Part 03
2024-03-11 16:19:00 +01:00
Laurent Destailleur
38e67851bf Merge pull request #28747 from mdeweerd/test/security_dol_eval_ob_cleanup_on_exception
Fix: Ob buffer cleanup on exception
2024-03-11 16:17:14 +01:00
Laurent Destailleur
ba019a8936 Merge pull request #28764 from lamrani002/addInEmailingAi
NEW layout and prompt ai on create emailing
2024-03-11 16:16:25 +01:00
Laurent Destailleur
688e5ae9b6 Merge pull request #28757 from mdeweerd/fix/getChildrenOfLine/array_merge
Fix: getChildrenOfLine's use of includealltree as array
2024-03-11 16:14:37 +01:00
Laurent Destailleur
769b682fd3 Update commonobject.class.php 2024-03-11 16:13:11 +01:00
Laurent Destailleur
464b1246f0 Merge pull request #28736 from JonBendtsen/cheque_number
attempt at fixing #28645 - API bankaccounts/transfer POST missing the cheque_number
2024-03-11 15:37:47 +01:00
Laurent Destailleur
f7024b61ee Update api_bankaccounts.class.php 2024-03-11 15:37:16 +01:00
terhoy
a8a2f0ff73 FIX: online signature partly fails if commercial proposal numbering contains a mask that’s includes a space (#28608) (#28742)
* FIX: online signature (#28608) Update signature.lib.php

If Commercial proposal numbering contains a mask that’s includes a space, that will affect the result of the online signature form. When generating the online signature form, the code in signature.lib.php line 77, will remove any existing space in the Commercial proposal numbering. The result is that the online signature form will miss data in field “Third-party” and “Amount”.

* FIX: online signature (#28608) Update payments.lib.php

If Commercial proposal numbering contains a mask that’s includes a space, that will affect the result of the online signature form. When generating the online signature form, the code in core/lib/payments.lib.ph, will remove any existing space in the Commercial proposal numbering.
2024-03-11 15:33:10 +01:00
MDW
bb64871b35 Qual: Precise typing for Societeaccount's fields property (#28758)
# Qual: Precise typing for Societeaccount's fields property

Better typing helps static analysis and fixes the message:
PhanTypeMismatchArgumentInternal Argument 2 ($array) is $object->fields['site']['arrayofkeyval'] of type null but \array_key_exists() takes array
2024-03-11 15:23:43 +01:00
Lamrani Abdel
5e2a06a177 Add layout and prompt ai on create emmailing 2024-03-11 15:23:26 +01:00
Laurent Destailleur
1178b858d8 Merge branch 'develop' into fix/getChildrenOfLine/array_merge 2024-03-11 15:22:44 +01:00
Laurent Destailleur
39ea68ace4 Try fix phan 2024-03-11 15:20:56 +01:00
Laurent Destailleur
41078a9a46 Merge branch 'develop' into test/security_dol_eval_ob_cleanup_on_exception 2024-03-11 14:57:33 +01:00
Laurent Destailleur
66c40264d1 sql syntax 2024-03-11 14:56:36 +01:00
Laurent Destailleur
4d8e5bb2a7 Fix phpunit 2024-03-11 14:50:35 +01:00
Laurent Destailleur
be403024ed Try a fix for #28734 2024-03-11 14:40:36 +01:00
Laurent Destailleur
c192b8fccd Import menu before export 2024-03-11 14:33:02 +01:00
Laurent Destailleur
61d328093c Fix warnings 2024-03-11 14:28:55 +01:00
MDW
ec0fd31386 Fix phpstan workflow file (#28741)
* Fix phpstan workflow file

# Fix phpstan workflow file

Line was split in two, joined

* qual: set memory limit to 'unlimited' (-1)

* Remove some stubs to check impact

* Fix: Verify execution time limit

* Remove stub files to reuse cache

* Qual: Rename distribution phpstan.neon to phpstan.neon.dist

# Qual: Rename distribution phpstan.neon to phpstan.neon.dist

This allows the developer to override some settings locally

Also update the .gitignore file with phpstan.neon and some other other
ignores (cache, local log files, temporary edit files).

* Enable debug on phpstan

* Re-enable stubs

* Fix: Change parallel settings to defaults, remove buffer

'buffer' is not a documented parameter, removing it.
Removing some configuration settings as the defaults are higher and
should adapt better to the target machine
2024-03-11 14:04:02 +01:00
MDW
b72cf193c4 Fix some cases of PhanTypeSuspiciousStringExpression (#28751)
* Fix PhanTypeSuspiciousStringExpression

* Fix PhanTypeSuspiciousStringExpression

* Fix PhanTypeSuspiciousStringExpression

* Fix PhanTypeSuspiciousStringExpression

* Fix PhanTypeSuspiciousStringExpression

* Fix PhanTypeSuspiciousStringExpression

* Fix PhanTypeSuspiciousStringExpression

* Fix PhanTypeSuspiciousStringExpression

* Fix PhanTypeSuspiciousStringExpression

* Fix PhanTypeSuspiciousStringExpression

* Fix PhanTypeSuspiciousStringExpression

* Fix PhanTypeSuspiciousStringExpression

* Fix PhanTypeSuspiciousStringExpression

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-03-11 14:01:28 +01:00
Laurent Destailleur
0f2121e3ba Merge branch '19.0' of git@github.com:Dolibarr/dolibarr.git into develop 2024-03-11 13:46:08 +01:00
Florent Poinsaut
674e668b78 FIX cloned supplier order creation date as now 2024-03-11 12:42:16 +00:00
MDW
c333075776 Fix: getChildrenOfLine's use of includealltree as array
# Fix: getChildrenOfLine's use of includealltree as array

includealltree of getChildrenOfLine was used as an array, fixed
2024-03-11 13:41:02 +01:00
Laurent Destailleur
ae7e8a972b Merge branch '19.0' of git@github.com:Dolibarr/dolibarr.git into 19.0 2024-03-11 13:39:26 +01:00
Laurent Destailleur
e72671bf50 Merge branch '18.0' of git@github.com:Dolibarr/dolibarr.git into 19.0 2024-03-11 13:39:04 +01:00
Laurent Destailleur
07ecee2429 Merge branch '18.0' of git@github.com:Dolibarr/dolibarr.git into 18.0 2024-03-11 13:32:04 +01:00
Laurent Destailleur
f40ad6e90a Merge branch '17.0' of git@github.com:Dolibarr/dolibarr.git into 18.0 2024-03-11 13:31:55 +01:00
Laurent Destailleur
5daa7d6a08 Merge branch '17.0' of git@github.com:Dolibarr/dolibarr.git into 17.0 2024-03-11 13:30:34 +01:00
Laurent Destailleur
2df1ea2097 Merge branch '16.0' of git@github.com:Dolibarr/dolibarr.git into 17.0 2024-03-11 13:30:13 +01:00
Laurent Destailleur
ab760df389 Merge branch '15.0' of git@github.com:Dolibarr/dolibarr.git into 16.0 2024-03-11 13:29:40 +01:00
Laurent Destailleur
2db58f09bc Merge branch '14.0' of git@github.com:Dolibarr/dolibarr.git into 15.0 2024-03-11 13:19:44 +01:00
Laurent Destailleur
b7a246cedb Merge branch 'develop' into test/security_dol_eval_ob_cleanup_on_exception 2024-03-11 13:18:19 +01:00
Laurent Destailleur
30b5450e21 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into
develop
2024-03-11 13:17:57 +01:00
Laurent Destailleur
f72b03434b Fix sql sanitization 2024-03-11 13:16:53 +01:00
daraelmin
4065a59024 FIX #24265 regression cannot see all product on takepos (#28753)
* FIX #24265 regression cannot see all product on takepose

See discussion here :

https://www.dolibarr.fr/forum/t/bug-affichage-takepos-mobile-dolibarr-v17/43219

* Update pos.css.php

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-03-11 13:07:37 +01:00
MDW
dbfb1180ee Qual: Fix PhanPluginDuplicateIfStatements & remove exceptions (#28749)
# Qual: Fix PhanPluginDuplicateIfStatements & remove exceptions

Fix occurences of PhanPluginDuplicateIfStatements which are if statements where the
consecutive branches execute the same code, making it useles to test the condition
2024-03-11 12:58:51 +01:00
MDW
aee0509473 Qual: Force typing on variable fixing several phan notices (#28740)
* Qual: Force typing on variable fixing several phan notices

# Qual: Force typing on variable fixing several phan notices

Forcing DolibarrModules on $objMod after assignment to fix typing checks

* Qual: Fix typing on import_label/export_label
2024-03-11 12:56:55 +01:00
MDW
8602ca9885 Fix: implode->join and duplicated if condition (#28761)
* Fix: join->implode

# Fix: join->implode

Update new cases of join

* Fix: Duplicate if condition in if/else sequence

# Fix: Duplicate if condition in if/else sequence

Fixed repeated if condition and action
2024-03-11 12:55:55 +01:00
MDW
9c00a465c9 Qual: phan: Add more global definitions (#28745)
* Qual: phan: Add more global definitions

# Qual: phan: Add more global definitions

Add some more typing information for globals

* Qual: phan: ignore local conf file which may contain exceptions

* Qual: phan: add a few more global typings
2024-03-11 12:55:44 +01:00
Philippe Grand
e25fb6f39b update code, better compliance with php8 (#28746)
* update code, better compliance with php8

* update code, better compliance with php8
2024-03-11 12:54:32 +01:00
Laurent Destailleur
1aa1647606 Update SecurityTest.php 2024-03-11 12:53:03 +01:00
Laurent Destailleur
41a57c05c5 Update SecurityTest.php 2024-03-11 12:51:27 +01:00