Commit Graph

915 Commits

Author SHA1 Message Date
ldestailleur
84f9065881 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into
develop
2025-10-03 10:11:04 +02:00
Frédéric FRANCE
4dcdabf275 fix create extrafields of type email (no more mail) (#35599)
86f5db7aa9

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2025-10-03 10:02:25 +02:00
ldestailleur
54dc4452aa Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into
develop
2025-10-01 17:27:12 +02:00
ldestailleur
8b54c7f2b7 FIX Label shown when value is empty 2025-10-01 16:13:16 +02:00
Florian Mortgat
89757d5cbf NEW: hooks showInputExtraField and showOutputExtraField to override ExtraFields::show(Input|Output)Field (#35496)
* NEW: hooks `showInputExtraField` and `showOutputExtraField` to override `ExtraFields::showInputField` and `ExtraFields::showOutputField`

* Fix inter-hook interference with 'showOptionals' because resPrint isn't output right after calling executeHooks

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2025-09-29 23:31:26 +02:00
Laurent Destailleur
38a7524846 Merge branch '22.0' of git@github.com:Dolibarr/dolibarr.git into develop 2025-09-28 20:01:36 +02:00
ldestailleur
33dbb293ea Fix comment 2025-09-28 15:39:37 +02:00
ldestailleur
752e06f5fc FIX #35520 FIX #35522 2025-09-28 15:21:20 +02:00
Frédéric FRANCE
8e0b1eb606 fix object reference (#34928)
* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* merge

* fix doc

* fix doc

* fix doc

* fix doc

* fix doc

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2025-08-17 16:32:09 +02:00
ldestailleur
9ccede6c90 Removed the deprecated array $MAP_ID_TO_CODE that was a duplicate of
array "array_flip($categ->MAP_ID)"
2025-08-17 03:45:36 +02:00
ldestailleur
12743f30e4 Merge branch '22.0' of git@github.com:Dolibarr/dolibarr.git into develop 2025-08-09 14:09:21 +02:00
ldestailleur
1ddf739183 Fix CI 2025-08-09 13:56:11 +02:00
ldestailleur
a8173ff888 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into
develop
2025-08-06 12:39:32 +02:00
ldestailleur
86f5db7aa9 Fix better comaptibilty for extrafield email/mail 2025-08-05 00:45:00 +02:00
Maxime Kohlhaas
1a4226ff64 NEW : add extrafield option "empty on clone" (#34866)
* NEW : add extrafield option "empty on clone"

* NEW : empty extrafield value on clone

* Fix : missing parameter in function call

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2025-08-04 16:48:11 +02:00
ldestailleur
f0eaae6a1d Debug v22 2025-05-05 17:09:24 +02:00
ldestailleur
0e443bd76e Debug star extrafields (set initial highlight in php instead of js) 2025-05-05 13:40:41 +02:00
Florian Mortgat
9d0d8f7ec5 Fix/140/t250062/extrafields multicompany data loss (#34022)
* insertExtrafields(): simplify by returning 0 early if array_options is empty

* insertExtrafields(): simplify by using local variables $newValue and $attributeType

* insertExtrafields(): refactor by grouping the empty value cases for geodatabase-type extrafields

* insertExtrafields(): refactor by using a static mapping of geodata types to their ST_* db function on ExtraField class

* FIX: when an object that is shared across multiple entities already has some extrafields from another entity that are not reachable from the current entity, their values are lost

* Compliance with
- phan ( Closure Closure($key) has no declared or inferred parameter type for $key)
- php-stan (Error: Property ExtraFields::$geoDataTypes has no type specified)
2025-05-04 18:42:01 +02:00
Lucas Marcouiller
0ea9108fdd Fix ai prompt function for extrafields to match step 2 todo (#34032)
* Fix ai prompt function to match step 2 todo

* add  doc comment

* fix CI
2025-05-04 10:50:01 +02:00
ldestailleur
cde72d84a0 Refactoring code for better name and fix star extrafield on thirdparty 2025-04-26 03:00:53 +02:00
Yannis Hoareau
ebdf69ca69 Fix extrafields warning (#33761) 2025-04-08 15:22:48 +02:00
Vaadasch
87c3576a86 BUG duration minutes (#33767)
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2025-04-08 15:21:38 +02:00
Frédéric FRANCE
275a994110 do not force reload extrafields if not needed (#33716)
* Update extrafields.class.php

* fix

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2025-04-04 15:32:42 +02:00
Vaadasch
c855778dd4 FIX extrafields.class.php, working filter of sellist and chkbxlst on list.php (#33628)
* FIX extrafields.class.php, working filter of sellist and chkbxlst on list.php

* Update extrafields.class.php, replace indent spaces with tabs
2025-03-28 15:11:12 +01:00
MDW
8669993ecf Qual: Fix phan notices (compta/prel..fichinter) (#33485)
* Qual: Fix phan notices (asset..compta/paiement)

* Qual: Fix phan notices (compta/prel..fichinter)
2025-03-19 15:21:48 +01:00
ldestailleur
461cf5616e Clean code. WIP To manage permission on extrafields. 2025-03-18 14:55:37 +01:00
MDW
c3104905b3 Qual: Fix phan notices (html/core) (#33474)
* FIX: Replace compromised tj-actions/changed-files

# FIX: Replace compromised tj-actions/changed-files

See https://www.stepsecurity.io/blog/harden-runner-detection-tj-actions-changed-files-action-is-compromised .

* Add changed php file for test

* Qual: Fix phan notices (html/core)

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2025-03-15 16:34:35 +01:00
ldestailleur
abcd0d2cf2 Qual: Clean code related to categories 2025-02-23 19:42:49 +01:00
ldestailleur
1eb73bac6c Debug v22 - Use of $SEL$ was broken. 2025-02-21 17:52:54 +01:00
ldestailleur
0f7936220a Clean code and tooltip on using field in extrafields definition 2025-02-21 13:28:32 +01:00
Frédéric FRANCE
d11a8884f6 Merge branch 'develop' into extrafields_object_filter 2025-02-18 19:44:50 +01:00
Laurent Destailleur (aka Eldy)
461a576669 Close #32966 2025-02-10 12:42:41 +01:00
Laurent Destailleur (aka Eldy)
2bc3b872f2 FIX #32880 - Tags are using a special rendering. 2025-02-05 17:50:53 +01:00
Laurent Destailleur (aka Eldy)
12da2ba814 Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into 21.0 2025-01-30 13:12:44 +01:00
Regis Houssin
7bd2bb6efc FIX DROP INDEX IF EXISTS is not possible ! 2025-01-29 09:35:37 +01:00
Frédéric FRANCE
786a6571f4 Merge branch 'develop' into extrafields_object_filter 2024-12-19 20:36:32 +01:00
Laurent Destailleur (aka Eldy)
32924c1811 Debug v21 2024-12-12 14:59:47 +01:00
Frédéric FRANCE
9773604ebf Merge branch 'develop' into extrafields_object_filter 2024-12-08 09:45:00 +01:00
Frédéric France
2e18d20a3b wip 2024-12-08 09:36:11 +01:00
Frédéric France
a45494099f wip 2024-12-08 09:29:38 +01:00
Frédéric FRANCE
8037dc3b96 fix 2024-12-05 21:46:31 +01:00
MDW
d48a2e907f Qual: Fix phan notices (mostly in box files)
# Qual: Fix phan notices (mostly in box files)

Fix several phan notices reported in box files and a few extra cases.
2024-12-04 23:41:04 +01:00
Laurent Destailleur (aka Eldy)
4e6d3217bc Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into develop 2024-12-02 01:58:06 +01:00
Laurent Destailleur (aka Eldy)
5c321cc678 Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into 20.0 2024-12-02 01:52:08 +01:00
Joachim Kueter
18775c06ea FIX #31890 store empty line extrafields (#32152)
* FIX #31890 store empty line extrafields

If a line extrafield had originally some contents, after deleting it and submitting it as empty, the extrafield was not stored but the original contents kept

* corrected whitespace
2024-11-30 13:06:36 +01:00
Laurent Destailleur (aka Eldy)
07536ea01a Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into
develop
2024-11-29 15:25:49 +01:00
Frédéric FRANCE
82f54e707e Update extrafields.class.php (#32135) 2024-11-29 14:45:26 +01:00
HENRY Florian
96d60b92f4 fix: when create separate extarfields, if already exists always return false error (#32103) 2024-11-27 22:39:52 +01:00
Frédéric France
02937ac100 fix phpstan 2024-11-27 18:25:18 +01:00
Frédéric FRANCE
95fadde61b Merge branch 'develop' into extrafields_object_filter 2024-11-25 21:43:27 +01:00