Commit graph

131006 commits

Author SHA1 Message Date
Laurent Destailleur
39ea68ace4 Try fix phan 2024-03-11 15:20:56 +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
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
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
4dba1f420e Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2024-03-11 12:48:10 +01:00
Laurent Destailleur
1f4e7aedde Avoid to denaturate value when not required. 2024-03-11 12:47:53 +01:00
Maximilien Valenzano
68441677f7
fix: update currency when selected supplier (#28760) 2024-03-11 12:41:30 +01:00
Lucas Marcouiller
c224f9388e
Fix display in adherents type (#28754)
Co-authored-by: Hystepik <lmarcouiller@nltechno.com>
2024-03-11 12:39:23 +01:00
MDW
48073b85cb
Fix: 'count' on scalar zip->numFiles (#28756) 2024-03-11 12:39:07 +01:00
Laurent Destailleur
f32bf4b3a7 Fix join -> implode 2024-03-11 12:38:21 +01:00
Laurent Destailleur
af8c45987e Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into
develop
2024-03-11 12:30:03 +01:00
Laurent Destailleur
509754fe6b Better fix for #28755 #28752 2024-03-11 12:29:13 +01:00
Lucas Marcouiller
b3c275bcf9
Fix #28752 fix fatal error in societe card (#28755)
Co-authored-by: Hystepik <lmarcouiller@nltechno.com>
2024-03-11 12:26:47 +01:00
Laurent Destailleur
b3ee7c3853 Fix warning 2024-03-11 12:22:06 +01:00
Laurent Destailleur
e94b9f48c8 Fix warning 2024-03-11 12:18:57 +01:00
Laurent Destailleur
898aebdbf8 Fix missing tooltip 2024-03-11 12:06:57 +01:00
Laurent Destailleur
002a4596df Fix warning 2024-03-11 12:00:39 +01:00
Laurent Destailleur
a327d39062 Fix warning 2024-03-11 11:39:51 +01:00
Laurent Destailleur
ef45783d64 NEW: All fetchAll() method now support the USF syntax. 2024-03-11 11:33:58 +01:00
Laurent Destailleur
09802f76c1 NEW: All fetchAll() method now support the USF syntax. 2024-03-11 11:27:26 +01:00
Laurent Destailleur
0887664888 NEW: All fetchAll() method now support the USF syntax. 2024-03-11 11:23:34 +01:00
Laurent Destailleur
8df2ddc494 Fix sanitize sql 2024-03-11 10:48:46 +01:00
Laurent Destailleur
8d7911f484 Fix compatibility with USF. 2024-03-11 10:32:15 +01:00
Laurent Destailleur
c7d0ee18be Fix escape 2024-03-11 10:19:50 +01:00
Laurent Destailleur
517bffc211 Escape 2024-03-11 10:16:32 +01:00
Laurent Destailleur
1431582b82 Fix cursor 2024-03-11 10:10:17 +01:00
Laurent Destailleur
0fb4a44563 Fix nb of lines 2024-03-10 22:13:37 +01:00
Laurent Destailleur
c853a4687f Can delete last and criteria into the generic component. 2024-03-10 19:41:31 +01:00
Laurent Destailleur
c03b5dc2ec Fix for phan output 2024-03-10 18:50:02 +01:00