Commit Graph

895 Commits

Author SHA1 Message Date
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
Mohamed DAOUD
914ed1b18c Fix #30766 Extra field Can Always Be Edited (#31876)
* fix alwayseditable

* Update extrafields.class.php

* Update extrafields.class.php

* Update extrafields.class.php

* enhance fix alwayseditable

* fix phan
2024-11-20 21:40:28 +01:00
Laurent Destailleur
df6ed90eed Try better fix for #32009 2024-11-20 21:22:34 +01:00
Frédéric FRANCE
0a9eb9008a fix extrafields when object doesnt have const STATUS_DRAFT (#32009) 2024-11-20 20:59:03 +01:00
Frédéric FRANCE
b7816bf648 fix phpstan (#32010)
* fix phpstan

* Update extrafields_view.tpl.php

* Update extrafields.class.php
2024-11-20 20:56:16 +01:00
Frédéric France
af925191c9 test 2024-11-19 23:37:10 +01:00
Frédéric France
ad8a5c9054 Merge remote-tracking branch 'upstream/develop' into extrafields_object_filter 2024-11-19 21:26:20 +01:00
Mohamed DAOUD
2f6e814d6f Enhance the behavior of stars extrafields with the canAlwaysBeEdited parameter (#31978)
* enhance stars extrafields and alwayseditable

* add comment

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-11-18 21:24:41 +01:00
omogenot
48f0f55b7c NEW: Allow multiple extrafields deletion (#31956)
* Allow multiple extrafields deletion

If no element type parameter is given to the delete_label function, all occurences of the same extra field name are deleted at once. This simplifies the de-installation of a module that would have created multiple extra fields accros several element types.

* Update extrafields.class.php

Remove empty line whitespace
2024-11-16 20:13:40 +01:00
Frédéric FRANCE
66374f2859 Merge branch 'develop' into extrafields_object_filter 2024-11-09 11:46:45 +01:00
Mohamed DAOUD
ae7c15d180 Fix function call to display star extra fields by passing object as parameter (#31664)
* fix stars extrafield regression

* Update extrafields_list_print_fields.tpl.php

* fix phan

* Update extrafields_list_print_fields.tpl.php
2024-11-01 10:47:16 +01:00
Laurent Destailleur
e6f1d4835f Clean sql code 2024-10-29 02:58:20 +01:00
Benoît PASCAL
ff9e2f3ce9 NEW: add duration extrafields (#31595)
* new: add duration extrafields

* style: fix style

* ci: fix precommit config

* style: run cs fixer

* ci: adapt type to fit with php-stan

* ci: adapt type to fit with php-stan

* ci: adapt type to fit with php-stan

---------

Co-authored-by: Benoît PASCAL <contact@p-ben.com>
2024-10-28 18:33:11 +01:00
Frédéric France
259ce6020d Merge remote-tracking branch 'upstream/develop' into extrafields_object_filter 2024-10-26 18:27:45 +02:00
MDW
67e9eaff46 Qual: Fix phan/phpstan notices in class files (part 2) (#31523)
* Qual: Fix phan notices in class files (part 2)

* Qual: Fix phan notices doleditor...events.class

* Qual: Fix phan notices defaultvalues...formprojet.class

* Qual: Fix notices formsetup...formwebsite.class

* Qual: Fix phan notices in class files (part 2)

* Qual: Fix phan notices doleditor...events.class

* Qual: Fix phan notices defaultvalues...formprojet.class

* Qual: Fix notices formsetup...formwebsite.class
2024-10-26 18:24:40 +02:00
Frédéric FRANCE
05c4dbcf09 new ajax search with infinite scroll 2024-10-22 22:45:51 +02:00
Frédéric FRANCE
12a9b43dee new ajax search with infinite scroll 2024-10-22 22:37:48 +02:00
Frédéric FRANCE
2a0d4bf2ae new ajax search with infinite scroll 2024-10-22 21:46:04 +02:00
Frédéric FRANCE
6f95ffe650 Merge remote-tracking branch 'upstream/develop' into extrafields_object_filter 2024-10-22 10:22:54 +02:00
Noé Cendrier
a18103187c NEW: Management of extrafields on customer prices, level prices and default prices (#31313)
* ADD: Management of extrafields on customer prices, level prices and default prices

* ADD: sql table for managing extrafields on customer prices, level prices and default prices

* FIX: Add actions to update, add, delete extrafields and display extrafield

* FIX: colspan for customer price table

* ADD: Management of extrafields on customer prices

* FIX: Value and search for price label

* ADD: name in the files

* FIX: *

* FIX: PHP-cs fail

* FIX: comment in english, please

* FIX: variable naming and testing

* FIX: GETPOST array

* FIX: return is an array of strings, object array will be modified as well

* FIX: return array keys for Extrafields::fetch_name_optionals_label are string too

* FIX: do not mess with extrafields code and value

* Update llx_product_customer_price_extrafields.sql

* Update llx_product_price_extrafields.sql

* FIX: whooopsie

* FIX: PHP warnings

---------

Co-authored-by: Mélina JOUM <melina.joum@altairis.fr>
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-10-19 09:50:18 +02:00
Laurent Destailleur
cf6b02b341 Fix regression, avoid using global variable 2024-10-18 15:35:24 +02:00