Commit Graph

902 Commits

Author SHA1 Message Date
Frédéric FRANCE
d685f1e529 fix CI (#35353)
* fix CI

* Update header.tpl.php

* Update style.css.php

* Update webportal.main.inc.php

* Update files.lib.php
2025-09-15 22:45:42 +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
Frédéric FRANCE
554d2baa32 clean code adherent (member) class (#35259)
* clean code adherent (member) class

* 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

* fix

* fix

* fix

* fix

* fix

* fix

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2025-09-12 02:40:35 +02:00
Frédéric FRANCE
6378a99e5a add src and id when create ecmfiles (#35292) 2025-09-11 11:22:11 +02:00
Frédéric FRANCE
1263054fba fix doc (#35298) 2025-09-11 11:10:45 +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
97d5025c08 Merge branch '22.0' of git@github.com:Dolibarr/dolibarr.git into develop 2025-09-07 18:51:58 +02:00
ldestailleur
f160e23918 Merge branch '21.0' of git@github.com:Dolibarr/dolibarr.git into 22.0 2025-09-05 17:23:25 +02:00
ldestailleur
6c0873708a Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into 21.0 2025-09-05 15:34:13 +02:00
ldestailleur
c2ed4519b1 Merge branch '19.0' of git@github.com:Dolibarr/dolibarr.git into 20.0 2025-09-05 11:38:30 +02:00
VIAL-GOUTEYRON Quentin
75ee26c3ed Add HRM module support in dol_check_secure_access_document() function to manage file access rights. (#35218)
* Add HRM module support in `dol_check_secure_access_document()` function to manage file access rights.

* fix space

* Update files.lib.php

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2025-09-04 14:26:42 +02:00
ldestailleur
f729d33dcc Clean setup of antivirus 2025-08-30 17:14:57 +02:00
ldestailleur
d4ee3a2122 Doc 2025-08-13 18:51:45 +02:00
ldestailleur
d0aa0df4f6 Merge branch '21.0' of git@github.com:Dolibarr/dolibarr.git into 22.0 2025-08-06 12:37:00 +02:00
Regis Houssin
618e455ca3 FIX avoid php warning with "$forceFullTextIndexation" (#34881)
* FIX avoid php warning, "$forceFullTextIndexation" not used in
"dol_add_file_process()" function, maybe deprecated ?

* FIX missing $forceFullTextIndexation parameter

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2025-08-06 12:33:08 +02:00
ldestailleur
49a834b08c Fix warning 2025-07-17 21:48:31 +02:00
ldestailleur
a9c48a3e4d Debug v22 2025-07-17 21:04:59 +02:00
ldestailleur
54ba7c2672 FIX mass action "Merge PDF" with high number of objects. 2025-07-17 19:30:58 +02:00
ldestailleur
9c2da8b9b6 Merge branch '21.0' of git@github.com:Dolibarr/dolibarr.git into develop 2025-06-19 11:31:44 +02:00
ldestailleur
a78e63dbf0 Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into 21.0 2025-06-19 11:13:59 +02:00
ldestailleur
0da1e6b464 Merge branch '18.0' of git@github.com:Dolibarr/dolibarr.git into 19.0 2025-06-19 10:48:18 +02:00
ldestailleur
7f817c5b25 Debug v22 2025-06-17 01:37:26 +02:00
Laurent Destailleur
75b9a98f0b Merge branch '19.0' of git@github.com:Dolibarr/dolibarr.git into 20.0 2025-06-14 02:24:25 +02:00
Laurent Destailleur
b8400d1b21 Merge branch '18.0' of git@github.com:Dolibarr/dolibarr.git into 19.0 2025-06-14 02:15:23 +02:00
Laurent Destailleur
1bd6757e62 Fix CI 2025-06-14 02:15:10 +02:00
Marc de Lima Lucio
bc18656fd5 FIX: files lib: multiple php 8.1 warnings (#34462) 2025-06-14 00:27:36 +02:00
ldestailleur
d0111dc240 Debug v22 2025-05-31 13:33:31 +02:00
Laurent Destailleur
b2f148da50 Merge branch '21.0' of git@github.com:Dolibarr/dolibarr.git into develop 2025-05-22 17:06:21 +02:00
atm-irvine
9c66aa29c6 fix(document): use propale instead of propal (#34248) 2025-05-22 15:45:20 +02:00
Laurent Destailleur
7c2fa3e8a1 Fix CI 2025-05-20 01:09:52 +02:00
Laurent Destailleur
0f4bf91fcd Fix default value of dol_move 2025-05-19 09:45:31 +02:00
ldestailleur
095905670a Remove BlockUI js plugin. Replaced with few js/css lines. 2025-05-06 19:15:13 +02:00
ldestailleur
9873a98c36 Merge branch '21.0' of git@github.com:Dolibarr/dolibarr.git into develop 2025-04-26 20:17:39 +02:00
ldestailleur
5507459381 Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into 21.0 2025-04-26 20:17:08 +02:00
Can Arslan
76a89cad00 fix: give user access for file if user has 'all' permission of the module (#33957) 2025-04-23 23:32:23 +02:00
Laurent Destailleur
6ef600e991 WIP option WEBSITE_EXPORT_SQL_ON_SEVERAL_LINES 2025-04-19 02:43:44 +02:00
Jon Bendtsen
2aa6e65c6f adding different filename check for when member codes are the advanced kind. Fix #32447 (#33862)
Co-authored-by: Jon Bendtsen <xcodeauthor@jonb.dk>
2025-04-16 01:04:33 +02:00
ldestailleur
3d8704ae63 Prepare code for a better implementation of #33857 2025-04-15 20:24:34 +02:00
ldestailleur
e276def96d Revert "add param nocreateEcmFile (#33770)"
This reverts commit 0bd93fa05a.
2025-04-10 14:19:49 +02:00
ldestailleur
15c799b324 Merge branch '19.0' of git@github.com:Dolibarr/dolibarr.git into 20.0 2025-04-10 14:17:56 +02:00
atm-jonathan
0bd93fa05a add param nocreateEcmFile (#33770)
Co-authored-by: x <x@x.x>
2025-04-08 15:24:28 +02:00
ldestailleur
ef95c311a7 Merge branch '21.0' of git@github.com:Dolibarr/dolibarr.git into develop 2025-04-03 21:09:46 +02:00
VIAL-GOUTEYRON Quentin
3ad05c2dde FIX: Incorrect entity used when downloading a document generated in another entity (#33565)
* FIX : Wrong entity to download document

* MODIFICATION : Remplacement de l'ID d'entité par l'objet dans les fonctions de gestion des fichiers pour une meilleure cohérence.

* Update files.lib.php

* Update files.lib.php

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2025-04-01 23:13:31 +02:00
ldestailleur
5d51d0679b Share not allowed extension into the method getExecutableContent() 2025-04-01 17:53:33 +02:00
MDW
a0f71fbe76 Qual: Fix phan notices (core/lib) (#33379)
* Qual: Fix PhanMismatchType

* Finalize rename of $attrV into $value

* Correct getGlobalString into getGlobalInt

* Do not require some fields in the 'title' definition of $cols

* Qual: Fix phan notices (core/lib)
2025-03-11 01:43:54 +01:00
MDW
035ede5874 Qual: Fix phan notices in API classes 2025-03-02 20:49:46 +01:00
ldestailleur
ac5d5aeb91 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into
develop
2025-03-02 15:29:14 +01:00
ldestailleur
cc2af5eec0 Debug v21, missing error message 2025-03-02 14:04:27 +01:00