2
0
forked from Wavyzz/dolibarr

779 Commits

Author SHA1 Message Date
Frédéric FRANCE
a90c222f73 clean code (#35626)
* clean code

* clean code

* clean code

* clean code

* clean code

* clean code

* clean code
2025-10-04 00:07:24 +02:00
ldestailleur
54eaa1f106 More spellcheck 2025-09-30 18:30:59 +02:00
Laurent Destailleur
e85c2d70b9 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2025-09-24 00:56:29 +02:00
ldestailleur
ad830a346e Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into
develop
2025-09-23 16:50:17 +02:00
ldestailleur
6ead2839d0 Fix missing several test on permission on actions 2025-09-23 16:41:53 +02:00
ldestailleur
f4d3c63332 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into
develop
2025-09-22 10:50:45 +02:00
Laurent Destailleur
7ef5b4d427 Code comment 2025-09-22 02:39:45 +02:00
Laurent Destailleur
a2640829ca Better sanitization of url and email 2025-09-22 02:38:48 +02:00
ldestailleur
74cc569329 Merge branch '22.0' of git@github.com:Dolibarr/dolibarr.git into develop 2025-09-15 18:14:11 +02:00
ldestailleur
60f0813520 Merge branch '21.0' of git@github.com:Dolibarr/dolibarr.git into 22.0 2025-09-12 23:05:15 +02:00
ldestailleur
8b57bb2e41 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2025-09-12 13:30:12 +02:00
ldestailleur
13407fe5ee Prepare code for Loi Finance 2025-09-12 13:29:19 +02:00
Eric - CAP-REL
1f8b5db2c7 exit code must be >= 0 (#35311) 2025-09-12 02:29:23 +02:00
VIAL-GOUTEYRON Quentin
eb3d752047 Fix (ecm): support for custom entity in file operations (#35283)
* fix(ecm): add support for custom entity in file operations

This commit addresses missing support for specifying custom `entity` values during file operations, ensuring proper handling of multi-entity configurations. Changes include:

- Adding an `entity` parameter to the `fetch` method of `EcmFiles` and ensuring proper filtering based on the provided entity.
- Modifying `dol_move`, `deleteFilesIntoDatabaseIndex`, and other file-related functions to support the `entity` parameter.
- Ensuring entity propagation in operations like file indexing, renaming, and deletion.

This resolves issues where operations were limited to the default entity value (`$conf->entity`), improving flexibility and correctness in multi-entity setups.

* fix(ecm): improve code formatting for entity checks

Ensure consistent coding style for entity-related conditions across file operations by adding spacing around `empty()` calls.

This improves code readability and maintains uniformity in the handling of multi-entity configurations within the `EcmFiles` class and related modules.

* fix(ecm): cast entity to int in SQL queries

Ensure `entity` values are explicitly cast to integers in SQL conditions, improving type safety and preventing potential SQL injection vulnerabilities.

This change applies consistent casting in multiple entity-related checks within the `EcmFiles` class to enhance code security and reliability.
2025-09-10 10:59:09 +02:00
Frédéric FRANCE
0e1478206a clean code (#35229)
* clean code

* clean code

* clean code

* clean code

* clean code

* clean code

* clean code

* clean code

* clean code

* clean code

* clean code

* clean code

* clean code

* clean code

* clean code

* clean code

* clean code

* clean code

* clean code

* clean code

* clean code

* clean code

* clean code

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2025-09-08 01:48:52 +02:00
ldestailleur
93cc83ec4c Merge branch '22.0' of git@github.com:Dolibarr/dolibarr.git into develop 2025-09-04 21:07:09 +02:00
Frédéric FRANCE
bcbcf30959 fix CI v22 (#35227)
* fix CI v22

* Update time.php

* Update card.php

* Update card.php

* Update card.php

* Update card.php

* Update card.php

* Update card.php

* Update card.php

* Update card.php
2025-09-04 20:58:40 +02:00
ldestailleur
3e2b962c1d Merge branch '22.0' of git@github.com:Dolibarr/dolibarr.git into develop 2025-09-01 11:40:04 +02:00
Regis Houssin
2840ebeedf FIX wrong country code (#35152) 2025-08-31 11:53:35 +02:00
thomasjulie
997e548a58 NEW We added a hook to allow us to modify the Prospect Customer drop down… (#25635)
* We added a hook to allow us to modify the Prospect Customer drop down list in Third Party

* modification of the hook on third party card and adding hooks on third party list

---------

Co-authored-by: root <root@dolibarr17.fr>
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2025-08-14 05:06:18 +02:00
Maxime Kohlhaas
43227d215f Fix : missing value in form of new birth field (#34874)
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2025-08-06 22:18:05 +02:00
Maxime Kohlhaas
edd2f599cc NEW : add company date birth (UI) (#34861)
* NEW : add company date birth (SQL structure)

* NEW : add company date birth (UI)

* Rename date_birth in birth

* Rename date_birth in birth (UI)

* Update societe.class.php

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2025-08-04 13:50:05 +02:00
ldestailleur
60547fda94 Debug v22 2025-07-19 14:17:59 +02:00
ldestailleur
78689fd180 Better fix for #34702 2025-07-17 19:30:58 +02:00
ldestailleur
1515adf313 Revert "FIX when using THIRDPARTY_CUSTOMERTYPE_BY_DEFAULT and direct link New prospect, New Customer or New Supplier (#34702)"
This reverts commit 870979362e.
2025-07-17 19:30:58 +02:00
Alain Rihs
db3a5cfbef FIX when using THIRDPARTY_CUSTOMERTYPE_BY_DEFAULT and direct link New prospect, New Customer or New Supplier (#34702)
* Update card.php

#FIX when using THIRDPARTY_CUSTOMERTYPE_BY_DEFAULT and direct link New prospect, New Customer or New Supplier

* Fix name of option for supplier

* Update functions.lib.php (#34718)

Add __MYCOMPANY_URL__ & __MYCOMPANY_PHONEMOBILE__ in getCommonSubstitutionArray

* Fix bad value  fourn paiement process (#34722)

* Fix bad value  fourn paiement process

* best fix

* fix takepos console error (#34709)

* fix console error

* exit early

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>

* Update card.php

* Fix CI

* Clean code

* Comment

* Update card.php

"if (getDolGlobalInt('THIRDPARTY_CUSTOMERTYPE_BY_DEFAULT')) {":
this part of code is wrong when we click on "New customer", Customer AND Prospect are selected. New test on line 1452 cover this case. So when type is C, variable object->client should be 1.
And I corrected the new code with parenthesis.

* Update card.php

distraction error in the new code

---------

Co-authored-by: ldestailleur <eldy@destailleur.fr>
Co-authored-by: Deefaze <6393617+Deefaze@users.noreply.github.com>
Co-authored-by: Lucas Marcouiller <45882981+Hystepik@users.noreply.github.com>
Co-authored-by: Francis Appels <francis.appels@yahoo.com>
2025-07-17 19:30:58 +02:00
Alain Rihs
8772306b60 Update card.php (#34677)
Since the improvement of the Prospect/Client/Supplier selection, the THIRDPARTY_CUSTOMERTYPE_BY_DEFAULT variable is no longer taken into account. This code restores this functionality when creating a new third party.
2025-07-04 09:56:07 +03:00
ldestailleur
8c88eab05c Debug v22 - Removed conflict code with old dolopenpopup architecture 2025-06-25 12:29:11 +02:00
Laurent Destailleur
2187a5c8a5 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2025-06-13 16:28:43 +02:00
Laurent Destailleur
144854769a Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into
develop
2025-06-13 16:27:57 +02:00
Maxime Kohlhaas
cbc2cf5063 Fix : thirdparty type was not set on creation form (#34451) 2025-06-13 16:12:30 +02:00
atm-lena
2c38daa86a FIX Issue 34445 (#34449)
Co-authored-by: atm-lena <lena.papazian@atm-consulting.fr>
2025-06-13 16:06:52 +02:00
Laurent Destailleur
221c27c091 Merge branch '21.0' of git@github.com:Dolibarr/dolibarr.git into develop 2025-06-09 18:15:59 +02:00
Laurent Destailleur
326c75dc51 Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into 21.0 2025-06-09 17:58:54 +02:00
Christophe Battarel
e35d93ea76 FIX : bad value for company ref crashes canvas feature (#34331)
* FIX : bad value fo company ref crashes canvas feature

* fix technical id for company

---------

Co-authored-by: Christophe Battarel <christophe@altairis.fr>
2025-06-04 11:09:43 +02:00
Christophe Battarel
3c28692ddb fix backtopage when using canvas (#34334)
Co-authored-by: Christophe Battarel <christophe@altairis.fr>
2025-06-04 10:59:55 +02:00
ldestailleur
094a05b9a5 Debug v22 2025-05-27 14:48:25 +02:00
ldestailleur
c025ae1c83 Clean code 2025-05-26 17:24:27 +02:00
Laurent Destailleur
fed208b57d Debug v22 2025-05-16 22:39:08 +02:00
Laurent Destailleur
d540dd0ab7 Finish option CATEGORY_EDIT_IN_POPUP_NOT_IN_MENU 2025-05-16 17:59:39 +02:00
Frédéric FRANCE
c1f8d7ff4a fix translation existing twice (#34102)
* fix translation existing twice

* fix translation existing twice

* fix

* fix

* fix

* fix

* fix

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2025-05-12 20:25:02 +02:00
ldestailleur
13ee6e6c7d Fix trans 2025-05-12 19:39:16 +02:00
Laurent Destailleur
da982d1106 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2025-05-12 01:44:04 +02:00
Laurent Destailleur
ceeb5b7a50 Clean code 2025-05-12 01:38:55 +02:00
Laurent Destailleur
7dd95914e8 Clean code 2025-05-12 00:02:59 +02:00
ldestailleur
f0ad845711 Merge branch '21.0' of git@github.com:Dolibarr/dolibarr.git into develop 2025-05-11 12:32:45 +02:00
ldestailleur
a9a2ff560a FIX Can set the default value of nature of thirdparty 2025-05-11 12:26:36 +02:00
ldestailleur
a18284b829 Debug v22 2025-04-11 17:36:05 +02:00
ldestailleur
ae59c409f6 Modulebuilderization 2025-03-26 00:56:24 +01:00
MDW
2cd6459d10 Qual: Fix phan notices (*card) (#33450) 2025-03-14 17:25:11 +01:00