Commit graph

151292 commits

Author SHA1 Message Date
Laurent Destailleur
f0693549b3 Fix bad message 2024-03-05 01:12:28 +01:00
Laurent Destailleur
41c8c23dbb Disable not complete test 2024-03-05 01:07:19 +01:00
Laurent Destailleur
31ae1bf97f Fix restore stop on failure. No need to continue, we must fix first.
Make travis error analysis easier too.
2024-03-05 01:05:50 +01:00
Laurent Destailleur
aedffc6cee Fix cast 2024-03-05 00:52:01 +01:00
Laurent Destailleur
8abb608c17 Fix fetchAll for website pages 2024-03-05 00:42:44 +01:00
Laurent Destailleur
c3db669a10 Fix fetchAll for website pages 2024-03-05 00:38:20 +01:00
Laurent Destailleur
94a82716b7 Fix regression with GETPOSTINT 2024-03-05 00:26:24 +01:00
Laurent Destailleur
d09c9c0174 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2024-03-05 00:23:38 +01:00
Laurent Destailleur
ce010a54c7 Clean code and prepare a more powerfull phpunit check for sql forging. 2024-03-05 00:22:12 +01:00
Frédéric FRANCE
caa5ed527f
Merge branch 'develop' into patch-11 2024-03-04 20:59:22 +01:00
Frédéric FRANCE
31ba3a3723
fix phpstan (#28633) 2024-03-04 20:14:52 +01:00
Frédéric FRANCE
52df5140a4
fix phpstan (#28632) 2024-03-04 20:14:30 +01:00
MDW
6f8b941c96
Fix: Script tests on Windows where PHP executable is not in path. (#28565)
# Fix: Script tests (on Windows)

- Set `exit(255)` instead of `exit(-1)` in `scripts/bank/export-bank-receipts.php`.
  On *nix, the -1 converts into an exist code of 255 but on windows it
  is -1, making the test fail.
- Add a helper method to execute php scripts using the php binary used
  to run phpunit.

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-03-04 20:13:34 +01:00
Laurent Destailleur
04670b92b3 Fix var_dump 2024-03-04 20:13:08 +01:00
Laurent Destailleur
53e47df053 Use new return code rule 2024-03-04 20:05:18 +01:00
Laurent Destailleur
b15d71274a Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2024-03-04 19:50:51 +01:00
Laurent Destailleur
fe5401d7e2 Doc 2024-03-04 19:50:36 +01:00
Laurent Destailleur
3bafcf5d00 Fix CLI tools must return a positive value on error for better cross
platform compatibility
2024-03-04 19:41:21 +01:00
Christian Humpel
6cc9ac5542
FIX: Count of virtual stock at Services and MoLine with disabled stock change (#28580)
* fix the count of virtual stock

* - fix "Found non sanitized string" ?

---------

Co-authored-by: christian.humpel <christian.humpel@gmail.com>
2024-03-04 18:59:37 +01:00
JeromeBARBOTIN
c623558583
Verification of variables (#28629) 2024-03-04 18:52:41 +01:00
Frédéric FRANCE
f72f052736
Merge branch 'develop' into patch-11 2024-03-04 18:37:27 +01:00
Laurent Destailleur
c181bbe2f2 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2024-03-04 18:34:05 +01:00
Laurent Destailleur
8528b3f363 Clean conf 2024-03-04 18:33:32 +01:00
MDW
b30dd4e707
Fix: Cache issue in windows-ci - add enableCrossOsArchive (#28607)
# Fix: Cache issue in windows-ci - add enableCrossOsArchive

There is an issue in actions/cache on windows and adding 'enableCrossOsArchive: true'
should fix it according to
https://github.com/actions/cache/issues/1275#issuecomment-1925217178
2024-03-04 18:28:24 +01:00
Frédéric FRANCE
44ce77dd37
fix phpstan (#28606) 2024-03-04 18:27:49 +01:00
Frédéric FRANCE
7090af2b51
fix phpstan (#28609)
* fix phpstan

* Update emailsenderprofile.class.php
2024-03-04 18:27:20 +01:00
MDW
6878a834a5
Fix: Remove extra space in translation key (#28611)
# Fix: Remove extra space in translation key

Fix the extra space in the key 'ImpossibleToContactAuthority' when calling trans.
2024-03-04 18:26:57 +01:00
noec764
55c0efae3f
FIX: Special code is now transmitted by args only in order supplier (#28619)
Co-authored-by: Noé <noe@scopen.fr>
2024-03-04 18:26:38 +01:00
Frédéric FRANCE
d0c0dee616
fix typo in ChangeLog (#28613)
* fix typo in ChangeLog

* Update ChangeLog
2024-03-04 18:23:03 +01:00
Laurent Destailleur
e66e77e4a0 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2024-03-04 18:22:27 +01:00
MDW
f166f15f7d
Qual: Backport/pre commit / log annotation simplification (#28614)
* Qual: ci: Run pre-commit/php-cs with cache (#28079)

This adds a hook to .pre-commit-config.yaml and updates the workflow
to run php-cs with cache when it is run for all files.
When running on changed files only, the cache is not useful.

The php-codesniffer ruleset.xml was cleaned up (duplicates removal/formatted)

* Fix: Make all 'relative paths' absolute (#28196)

# Fix: Make all 'relative paths' absolute

The phpcs ruleset xml file's relative exclude patterns are relative to
the filename(s) provided on the command line.
Hence with partial verifications, the path exclusion does not function
as we would like.
Removing the relative-path attribute from the patterns the exclusion
works.
At the same time, the patterns were optimized and a comment was added.

* Qual: Optimize workflow (#28386)

# Qual: Optimize workflow

The log annotation based on the pre-commit logs is now simplified.
2024-03-04 18:21:32 +01:00
Laurent Destailleur
1cf5f31355 Fix #28620 2024-03-04 18:15:21 +01:00
Frédéric FRANCE
47dfcf9bfc
clean code (#28616) 2024-03-04 18:13:32 +01:00
thomas-Ngr
cf7f40b739
new fetch() for classes Fournisseur and Client (#28621)
* New : introduce Fournisseur::fetch() and Client::fetch(). Add new parameters  and  to Societe::fetch()

* societe::fetch: both is_client and is_fournisseur false by default

* Simplify code
2024-03-04 18:11:50 +01:00
William Mead
f103278bb4
Qual phpstan cron card (#28626)
* Fixed unitfrequency type. Fixed localization.

* Cleaned code & comments. Added contributor details.
2024-03-04 18:08:07 +01:00
Laurent Destailleur
723b1b06e7 Debug v20 2024-03-04 18:06:55 +01:00
Frédéric FRANCE
21688a00dd
Update bookcalindex.php (#28615) 2024-03-04 18:00:31 +01:00
Frédéric FRANCE
a0444ef55d
fix can't delete pdf if ref is not encoded (#28630) 2024-03-04 17:58:43 +01:00
William Mead
29d87ec14a
Fixed lastresult type (#28628) 2024-03-04 17:58:21 +01:00
Laurent Destailleur
61dd78b95e Fix regression. Removed bad fixer. GETPOST(... int) is not GETPOSTINT 2024-03-04 17:49:43 +01:00
Laurent Destailleur
a2f5d6ad0b Merge branch '19.0' of git@github.com:Dolibarr/dolibarr.git into develop 2024-03-04 14:47:25 +01:00
Laurent Destailleur
9f1393f6ea Merge branch '18.0' of git@github.com:Dolibarr/dolibarr.git into 19.0 2024-03-04 14:46:54 +01:00
Laurent Destailleur
db7a62f644 FIX fatal error Unsupported operand types when recording load payment 2024-03-04 14:46:33 +01:00
Laurent Destailleur
0c86f64565 FIX permission on payment file of a tax 2024-03-04 14:03:46 +01:00
Laurent Destailleur
e82c6af5bc FIX permission on payment file of a tax 2024-03-04 14:03:17 +01:00
Laurent Destailleur
583480edbe FIX permission on payment file of a tax 2024-03-04 14:02:49 +01:00
Laurent Destailleur
fa0f5650dd Comment 2024-03-04 12:22:45 +01:00
Laurent Destailleur
0f295fb09d Fix regression with GETPOSTINT, not same than GETPOST(..., 'int') 2024-03-04 11:00:21 +01:00
Laurent Destailleur
67d637554c Fix regression with GETPOSTINT, not same than GETPOST(..., 'int') 2024-03-04 10:55:52 +01:00
Laurent Destailleur
63ef1b6c1f Fix regression with GETPOSTINT, not same than GETPOST(..., 'int') 2024-03-04 10:41:46 +01:00