Commit graph

146301 commits

Author SHA1 Message Date
ldestailleur
d8eebcafda Fix regression 2025-07-24 15:39:37 +02:00
ldestailleur
03165e5cae Remove duplicate definition table. 2025-07-24 14:42:45 +02:00
ldestailleur
ab8b4feca0 Enhance module datapolicy 2025-07-24 12:35:41 +02:00
ldestailleur
6b0f6f4b3a Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2025-07-24 12:22:08 +02:00
ldestailleur
e4662d0e5c Debug v23 2025-07-24 12:21:39 +02:00
Anthony Damhet
3e0df45f30
NEW | Discount split more than two parts (#34782)
* Discount split more than two parts

* fix spaces

* remove set action split and type variables

* Condition if javascript is disabled

* Update remx.php

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2025-07-24 11:53:11 +02:00
ldestailleur
724cb85c9a Fix trans 2025-07-24 11:45:43 +02:00
ldestailleur
5841cee655 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into
develop
2025-07-24 11:45:13 +02:00
VIAL-GOUTEYRON Quentin
5cf613a269
NEW : Major overhaul of DataPolicyCron and add Recruitment policy (#34704)
* refactor(datapolicy): redesign setup and logic for GDPR compliance

- Introduced a data-driven configuration structure for setup.php.
- Added support for a new "recruitment" GDPR datapolicy configuration.
- Streamlined code for managing anonymization and deletion delays.
- Enhanced dropdown generation logic to improve maintainability.
- Simplified data anonymization and deletion methods in cron execution.

This change provides more flexibility and modularity while ensuring compliance with GDPR standards.

* refactor(datapolicy): enhance data cleaning logic and add modular handlers

- Refactored `cleanDataForDataPolicy` method for better readability and efficiency.
- Implemented modular handlers for deletion and anonymization (_handleDelete and _handleAnonymize).
- Added dynamic argument building for method calls based on policy configurations.
- Improved SQL query preparation with placeholders for better database compatibility.
- Enhanced error handling and outcome recording in data processing.

This update simplifies extensibility and ensures robust handling of datapolicies.

* fix precommit

* fix

* fix(datapolicy): resolve uninitialized langs object and improve type hints

- Added a check to ensure `$langs` object is properly initialized, preventing runtime errors.
- Improved type hints in `datapolicycron.class.php` for stronger type checking and clarity.
- Replaced `empty` checks with `isset` for better null safety in setup.php dropdown logic.
- Adjusted SQL placeholders to cast values as strings for compatibility.

These changes enhance code robustness, type safety, and error handling.

* fix(datapolicy): improve type hints and streamline dropdown logic

- Added precise type hints (`string`, `array`) to enhance code clarity and type safety.
- Removed redundant condition in dropdown generation for improved maintainability.
- Added type specification for `$paramName` in `array_map` to strengthen type checking.
- Inserted missing class docblock for `CommonObject` in `datapolicycron.class.php`.

These updates lead to cleaner, safer, and more robust code.

* fix(datapolicy): improve type hints and streamline form submission logic

- Added return type hints (`: int`, `: void`, `: array`) in `datapolicycron.class.php` for better type safety and clarity.
- Simplified loop structures in `setup.php` by removing unnecessary variables.
- Revised `buttonsSaveCancel` method usage to eliminate redundant cancel parameter logic.
- Enhanced maintainability through refactoring `_processPolicyAction`, `_handleDelete`, and `_handleAnonymize` methods.

These refinements improve code readability, maintainability, and robustness.

* refactor(datapolicy): replace custom dropdown generation with `Form::selectarray`

- Removed the custom `$generateSelectHtml` function, simplifying code by using the existing `Form::selectarray` method.
- Updated dropdown generation for 'anonymize' and 'delete' actions to align with Dolibarr's standard practices.
- Enhances maintainability by leveraging built-in utilities and reducing custom logic.

* Update datapolicycron.class.php

* Try to fix CI

* Update datapolicycron.class.php

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2025-07-24 11:41:05 +02:00
MDW
dff2bd9d7c
qual: Update FTP stub for phan (#34796)
# qual: Update FTP stub for phan

Phan did not find the FTP/Connection type, so updated the ftp stub for phan
which fixes some notices that were new

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2025-07-24 11:30:54 +02:00
MDW
15924c3a14
qual: Update phan baseline (#34795)
Update phan baseline with regards to exceptions that were fixed.

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2025-07-24 11:25:14 +02:00
ldestailleur
256b1b705e Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2025-07-24 11:17:44 +02:00
ldestailleur
d83dcb98f3 Fix warnings 2025-07-24 11:17:32 +02:00
brice.l
789293c78a
Update contrat.class.php (#34784)
* Update contrat.class.php

Fix the function getListOfContracts with a missing LEFT JOIN when using $line_status

* Update contrat.class.php

add the left join in both cases and the inner join only for the product_categorie filter

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2025-07-24 11:01:32 +02:00
ldestailleur
6a18353eb0 Fix CI 2025-07-24 11:00:42 +02:00
ldestailleur
0187d1fcfc Fix CI 2025-07-23 16:31:09 +02:00
ldestailleur
2aa30381c6 FIX warning for too many %s 2025-07-23 14:48:32 +02:00
ldestailleur
3844c65e89 NEW Enhance popup for image preview (show size in title, can restore
small view, always show the Rotate button).
2025-07-23 14:43:51 +02:00
ldestailleur
8f3b65976a Fix emailcollector 2025-07-22 03:43:10 +02:00
ldestailleur
453c0bff06 Fix missing update of replyto 2025-07-22 01:54:01 +02:00
ldestailleur
af321bab80 Debug v22 - FIX Message-ID not set with SMTPs 2025-07-22 01:25:40 +02:00
ldestailleur
fb32860001 Debug v22 - FIX Message-ID not set with SMTPs 2025-07-22 01:23:28 +02:00
ldestailleur
4fa7e0f610 Merge branch '22.0' of git@github.com:Dolibarr/dolibarr.git into develop 2025-07-22 00:59:25 +02:00
ldestailleur
66dfc3f183 Fix reply to in ticket emails 2025-07-22 00:57:38 +02:00
ldestailleur
fe9ca39253 css 2025-07-22 00:45:11 +02:00
ldestailleur
5f7424bfed CSS 2025-07-22 00:42:58 +02:00
ldestailleur
0ea94b2a5f Clean code 2025-07-22 00:40:10 +02:00
ldestailleur
795ee53c88 Merge branch '22.0' of git@github.com:Dolibarr/dolibarr.git into develop 2025-07-21 23:27:15 +02:00
ldestailleur
e5c582f18f Debug v22 2025-07-21 23:26:56 +02:00
ldestailleur
4d0aad7d48 Merge branch '22.0' of git@github.com:Dolibarr/dolibarr.git into develop 2025-07-21 23:20:42 +02:00
ldestailleur
c269ad9332 FIX Sending ticket email must have different from and replyto to avoid
to be set as SPAM
2025-07-21 23:20:08 +02:00
ldestailleur
754387ed2b Doc 2025-07-21 22:22:55 +02:00
ldestailleur
7a076eead2 Merge branch '22.0' of git@github.com:Dolibarr/dolibarr.git into develop 2025-07-21 22:14:38 +02:00
ldestailleur
03910664c4 Debug v22 2025-07-21 22:09:10 +02:00
ldestailleur
1d6e198be2 Debug v22 - Invert option that add link to backoffice interface link
when it should remain private. It also makes often email marked as SPAM.
2025-07-21 21:20:00 +02:00
ldestailleur
5804520b96 Debug v22 - FIX date of created ticket. 2025-07-21 20:12:51 +02:00
ldestailleur
4d74dc6380 NEW Show full date with seconds in the tooltip of date of event 2025-07-21 19:56:43 +02:00
ldestailleur
80e5f7fe66 Fix tooltip 2025-07-21 18:58:25 +02:00
ldestailleur
fa12e7ddeb Merge branch '22.0' of git@github.com:Dolibarr/dolibarr.git into develop 2025-07-21 18:47:46 +02:00
ldestailleur
e1f253ac63 Debug v22 2025-07-21 18:38:49 +02:00
ldestailleur
3c6744638b Debug v22 2025-07-21 18:36:13 +02:00
ldestailleur
5beab40b92 CSS 2025-07-21 18:25:53 +02:00
ldestailleur
7dd642faab Missing field $fields 2025-07-21 18:15:43 +02:00
ldestailleur
cf329df785 Debug v22 2025-07-21 18:02:50 +02:00
ldestailleur
8cb68b3b94 css 2025-07-21 16:37:41 +02:00
ldestailleur
90439d3cfb Debug v22 2025-07-21 16:07:37 +02:00
ldestailleur
fd66570bdb Debug v22 2025-07-21 16:01:09 +02:00
ldestailleur
ff62ee2643 Debug v22 2025-07-21 15:56:25 +02:00
ldestailleur
910b1bf494 Debug v22 2025-07-21 15:50:27 +02:00
ldestailleur
5765c06d5f Debug v22 2025-07-21 15:17:46 +02:00