2126 Commits

Author SHA1 Message Date
Laurent Destailleur
ae52d75335 NEW Can add more tags to default tags in dolPrintHTML 2026-01-20 12:30:08 +01:00
Laurent Destailleur
60fbdb1bc9 Merge branch '23.0' of git@github.com:Dolibarr/dolibarr.git into develop 2026-01-19 14:48:06 +01:00
Laurent Destailleur
5d18db5aea Disable remote access in test 2026-01-16 18:15:51 +01:00
Laurent Destailleur
ec27124e24 Log message 2026-01-16 18:08:48 +01:00
Frédéric FRANCE
d770d37e29 add phpcs rule extension (#36561)
* add phpcs rule extension

* add phpcs rule extension

* add phpcs rule extension

* add phpcs rule extension

* add phpcs rule extension

* add phpcs rule extension

* add phpcs rule extension

* add phpcs rule extension

* add phpcs rule extension

* add phpcs rule extension

* add phpcs rule extension

* add phpcs rule extension

* add phpcs rule extension

* add phpcs rule extension

* add phpcs rule extension

* add phpcs rule extension

* add phpcs rule extension

* add phpcs rule extension

* add phpcs rule extension

* add phpcs rule extension

* add phpcs rule extension

* add phpcs rule extension

* test

* test

* test

* test

* test

* test

* fix

* fix

* fix

* fix

* fix

* fix

* fix translations

* fix translations

* translate

* translate

* translate

* translate

* translate

* translate

* translate

* Update propal.class.php
2026-01-15 16:05:06 +01:00
Laurent Destailleur
263cba5c0e Fix CI 2026-01-14 17:40:43 +01:00
Laurent Destailleur
9469ba672b Add log 2026-01-09 19:22:46 +01:00
Laurent Destailleur
0e6db7d7ea Merge branch '22.0' of git@github.com:Dolibarr/dolibarr.git into 23.0 2026-01-08 13:06:47 +01:00
Laurent Destailleur
2e47d661e5 Fix CI 2026-01-08 13:06:30 +01:00
Laurent Destailleur
aab17ffe0c Fix CI 2026-01-08 13:00:26 +01:00
Laurent Destailleur
d175489fde Add more phpunits 2026-01-07 20:21:35 +01:00
Laurent Destailleur
578a1ef568 Clean files 2026-01-07 19:01:54 +01:00
Laurent Destailleur
3aff6cded3 More phpuint tests 2026-01-07 14:14:37 +01:00
Laurent Destailleur
e9f6db629f Debug v23 2026-01-02 16:15:52 +01:00
Laurent Destailleur
a6d1b2235e Try to fix CI for pgsql 2025-12-22 03:45:20 +01:00
Laurent Destailleur
f133fce841 Debug v23 2025-12-21 16:04:12 +01:00
Laurent Destailleur
5ebbf9a70f Code comment 2025-12-18 15:07:54 +01:00
Laurent Destailleur
e8ac6cddd0 Fix Replace of__[xx]__ variables. 2025-12-09 11:09:19 +01:00
Laurent Destailleur
e2595b5117 Fix LNE 2025-12-02 22:37:49 +01:00
Laurent Destailleur
153d750d9c Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into
develop
2025-12-01 13:55:35 +01:00
Laurent Destailleur
41fc03c63b Fix: Do not transform [__XXX__] string when
MAIN_RESTRICTHTML_ONLY_VALID_HTML is on.
2025-12-01 13:54:27 +01:00
Laurent Destailleur
b83a13656f Add new phpunit tests 2025-11-30 18:37:58 +01:00
Laurent Destailleur
81ac5bddf9 Fix phpunit 2025-11-26 23:37:10 +01:00
Jon Bendtsen
280ca20600 more API endpoints checks multicompany auth with the same error message (#36409)
Co-authored-by: Jon Bendtsen <xcodeauthor@jonb.dk>
2025-11-25 14:32:28 +01:00
Jon Bendtsen
a40c97ec9c NEW: API set contact for any type in proposal, order or invoice dictionary (breaks API proposal) (#36269)
* NEW: Setting proposal contact to any in proposal contact dicitonary

* hurl tests and a little general cleanup of proposals api

* testing if the supplied type is in the dictionary

* Unique error codes

* Giving better error messages

* Making hurl tests reasonably identical for: proposals, orders and invoices

* BREAKING proposals, to make it identical with order and invoice + support for non default contacts for orders and invoices just like proposals

* adding the missing global  to order and invoice

---------

Co-authored-by: Jon Bendtsen <xcodeauthor@jonb.dk>
2025-11-24 20:12:35 +01:00
Jon Bendtsen
ff44d3ce3c fixing hurl test for api users (#36380)
Co-authored-by: Jon Bendtsen <xcodeauthor@jonb.dk>
2025-11-24 15:06:17 +01:00
Jon Bendtsen
54134eb0fa Hurl checks update Friday November 21st 2025 (#36366)
* Hurl checks update Friday November 21st 2025

* Looks like someone changed how to handle the multi entity tests that I used earlier

* updating warehouse check

* same update for users api

* and for group api

* fix GUI admin/mails_template.php checks

---------

Co-authored-by: Jon Bendtsen <xcodeauthor@jonb.dk>
2025-11-22 19:49:58 +01:00
Jon Bendtsen
8cf937e82f Qual: detect malformed DOLAPIKEY when run.sh hurl tests (#36372)
Co-authored-by: Jon Bendtsen <xcodeauthor@jonb.dk>
2025-11-22 19:48:02 +01:00
Laurent Destailleur
d07581555a Fix travis 2025-11-20 21:13:14 +01:00
Laurent Destailleur
a94ab3874d Close #35819 by using a new function dol_clone_in_array() 2025-11-20 19:40:57 +01:00
MDW
2d7d492bea New: Add quiet mode to hurl test runner (#36339)
- Added `--quiet` or `-q` option to disable informational output
- Updated help message to include the new option
- Modified print functions to respect quiet mode
2025-11-20 11:01:14 +01:00
Jon Bendtsen
111dce3854 Qual: fix 2 hurl tests: Contract and Emailtemplates (#36332)
* remove hurl test that requires a contract to exist

* change emailtemplates hurl tests to work when there is debug information in the API response

---------

Co-authored-by: Jon Bendtsen <xcodeauthor@jonb.dk>
2025-11-20 01:46:55 +01:00
Jon Bendtsen
ff2d9e987a Qual/Fix: remove entity=2 hurl test which doesn't work (#36336)
JonSweet16:hurl jonbendtsen$ ./run.sh module

----- Run hurl test on APIs ---
::notice::1. Running tests (API,GUI,public) that do not require authentication
::notice::Using existing DOLAPIKEY.
::notice::2.a. Running API tests that do require authentication
Success api/setup/10_setup_modules.hurl (13 request(s) in 2547 ms)
--------------------------------------------------------------------------------
Executed files:    1
Executed requests: 13 (5.1/s)
Succeeded files:   1 (100.0%)
Failed files:      0 (0.0%)
Duration:          2548 ms

Co-authored-by: Jon Bendtsen <xcodeauthor@jonb.dk>
2025-11-20 01:45:09 +01:00
Jon Bendtsen
d9814738e1 Qual: Fix broken hurl test for project GUI (#36333)
Co-authored-by: Jon Bendtsen <xcodeauthor@jonb.dk>
2025-11-20 01:44:27 +01:00
Jon Bendtsen
50c7ccd053 Fix: test for existing DOLAPIKEY before trying to get it using username and password (#36331)
* Fix: test for existing DOLAPIKEY before trying to get it using username and password

* remove the print statement that made the API key be wrong

* writing print_info to stderr

---------

Co-authored-by: Jon Bendtsen <xcodeauthor@jonb.dk>
2025-11-19 21:03:12 +01:00
Jon Bendtsen
12c0f73682 Fix hurl assert for API warehouses to new reply from Dolibarr (#36274)
* Fix hurl assert for API warehouses to new reply from Dolibarr

* Asserting with jsonpath can handle if there are extra keys in the json like debug which mdeweerd experienced

---------

Co-authored-by: Jon Bendtsen <xcodeauthor@jonb.dk>
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2025-11-19 19:34:11 +01:00
Jon Bendtsen
dfb19ddc6b New thorough Hurl tests for pages under /projet/ in Dolibarr's GUI (#36275)
* New throrough Hurl tests for pages under /projet/ in Dolibarr's GUI

* fix spelling typo

---------

Co-authored-by: Jon Bendtsen <xcodeauthor@jonb.dk>
2025-11-19 19:33:29 +01:00
Jon Bendtsen
c0bf718df3 using different hurl test to verify we are in the homescreen and that it works (#36294)
Co-authored-by: Jon Bendtsen <xcodeauthor@jonb.dk>
2025-11-19 19:32:37 +01:00
kkhelifa-opendsi
548bb94e4f NEW: Rework of the management of the card and fields on the web portal (#36076)
* NEW: Rework of the management of the card and fields on the web portal

* Correction pre-commit check

* Correction affichage logo login

* Ajout hook

* Ajout params fonction FormWebPortal::convertAllLink()

* Correction phpstan

* Correction phpstan

* Correction phpstan

* Correction phpstan

* Correction phpstan

* Correction phpstan

* Correction phpstan

* Correction phpstan

* Correction phpstan

* Correction phpstan

* Correction phpstan

* Correction phpstan

* Correction phpstan

* Correction phpstan

* Correction phpstan

* Correction phpstan

* Correction phpstan

* Correction phpstan

* Correction phpstan

* Correction phpstan

* Correction phpstan

* Correction phpstan

* Correction phpstan

* Correction phpstan

* Correction phpstan

* Correction phpstan

* Correction phpstan

* Correction travis

* Correction travis

* Correction travis

* Correction travis

* Correction

* Fix get options of sellist by AJAX in webportal scope

* Correction pre-commit

* Correction pre-commit

* Add hook and change hook name for viewImage controller

* Correction phan

* Corrections

* Corrections
2025-11-19 15:14:53 +01:00
Laurent Destailleur
d858764b15 Add config param $dolibarr_main_restrict_eval_methods with whitelist of
functionsallowed in dol_eval. Advisory GHSA-x3w7-24rq-gvc5
2025-11-19 03:44:24 +01:00
Laurent Destailleur
9818c76f7f MAIN_DISALLOW_STRING_OBFUSCATION_IN_DOL_EVAL replaced with
MAIN_ALLOW_OBFUSCATION_METHODS_IN_DOL_EVAL
2025-11-18 23:34:23 +01:00
Laurent Destailleur
5aaf9cd565 NEW Add hook on calcula_price() and get_default_tva() 2025-11-18 16:57:50 +01:00
MDW
b2d30053b4 Qual: Enhance hurl test documentation and run script (#36291)
- Added detailed documentation for running specific tests, including options and exclusions
- Improved installation instructions with platform-specific guidance
- Enhanced error handling and user feedback
- Added support for GitHub-compatible messages
- Improved script structure and readability

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2025-11-17 21:52:13 +01:00
Frédéric FRANCE
3a3785c92d Update SecurityTest.php (#36295)
* Update SecurityTest.php

* Update SecurityTest.php

* Update SecurityTest.php
2025-11-17 21:43:53 +01:00
Laurent Destailleur
e54cc9ab28 Fix phpunit 2025-11-17 21:40:36 +01:00
Jon Bendtsen
df4cd2fc65 FIX adding tms and datec to email templates (#36189)
* NEW: adding tms and datec to email templates

* Escaping a timestamp string I just generated myself

* switching single and double quotes in escape line for tms and datec to make the build system happy?

* Add an id to the table

* showing better names than tms and datec

* Changing code to label to fix #29116

* using hregis advice to use idate not escape the string with date

* requested changes

* forgot to add my name to editors

* had to make class changes for API to work

* setting datec back to int|string

* removing unused code lines and using idate in the api file

* no tms in create or update, but select. No datec in update

* expanding hurl tests to prevent post with id or tms, put with id or datec

---------

Co-authored-by: Jon Bendtsen <xcodeauthor@jonb.dk>
2025-11-11 09:02:57 +01:00
Laurent Destailleur
c42d783abe Fix regression 2025-11-09 14:53:09 +01:00
Frédéric FRANCE
9491d880cf clean code (#36170)
* clean code

* Update bom.class.php

* Update commondocgenerator.class.php

* fix

* fix

* fix

* fix

* fix

* fix

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2025-11-09 01:19:31 +01:00
Laurent Destailleur
240352b89e Fix regression 2025-11-08 15:59:31 +01:00
Laurent Destailleur
0b8f8ee8a0 Clean code 2025-11-08 12:13:39 +01:00