Commit graph

151 commits

Author SHA1 Message Date
Frédéric FRANCE
a5a533a40c
FIX: Escape extrafield form field values to stop double quotes truncating them
Several value="<?php echo ...; ?>" attributes in the add/edit templates
echoed stored or posted data (label, attrname, size, default_value,
list, perms, css, cssview, csslist) without dol_escape_htmltag(). A
double quote in the value closes the HTML attribute early, so the
browser silently drops everything from that quote onward when the
form (re-)renders — reported when editing a field whose stored value
contained a double quote. Pre-existing in these unchanged-by-design
shared templates, not introduced by the extrafields admin unification.
2026-08-12 08:48:27 +02:00
Frédéric FRANCE
f46fb07110
FIX: Separate whitelisted page key from real elementtype to fix post-save redirects and the agenda/actioncomm override leaking into self-referencing links 2026-08-12 05:18:53 +02:00
Frédéric FRANCE
b9faeaf53f
FIX: Carry elementtype through all self-referencing links and forms in shared extrafields admin templates 2026-08-11 20:36:26 +02:00
Laurent Destailleur
3855732a0e Debug v24 2026-06-21 15:20:14 +02:00
Anthony Damhet
8eae3cf658
Reorganization of the tooltip field on extra fields (#38619)
Harmonizing the placement of the tooltip field on exrafields during creation/editing
#38614
2026-06-09 01:41:17 +02:00
Laurent Destailleur
1e87370587 Debug v24 2026-05-25 02:32:09 +02:00
Laurent Destailleur
d9b75914a5 Fix tooltip and css 2026-05-24 00:35:26 +02:00
daraelmin
ef4f323df5
NEW: Add personal_data flag in extrafields admin UI - next step of #8612 (#38133)
* Add personal_data flag on extrafields for GDPR/privacy compliance

* Add migration script to add personal_data column on llx_extrafields

* Update 23.0.0-24.0.0.sql

* Update llx_extrafields.sql

* Add checkbox personal_data

* Getpost personal_data action

* Revert "Getpost personal_data action"

This reverts commit 43b38aaa8011d124341890ff2390df8cee9e8968.

* GETPOSTINT personal_data

* Edit personal_data

* Add personal_data flag in extrafields admin UI

* langs

* Trailing space

* Missing $showintooltip in update

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2026-05-10 00:57:16 +02:00
Laurent Destailleur
f11e99c055 spellcheck war 2026-03-19 11:11:45 +01:00
John BOTELLA
4039e17b89
NEW : Extrafield option for tooltip in getNomUrl (#37431)
* new extrafield option

* Fix php cs

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2026-03-13 08:25:40 +01:00
Laurent Destailleur
cbf2adc238 CI 2026-03-12 21:58:42 +01:00
Laurent Destailleur
f6241de8a0 Merge branch '23.0' of git@github.com:Dolibarr/dolibarr.git into develop 2026-03-01 14:15:34 +01:00
Laurent Destailleur
fc13435730 Debug v23 2026-03-01 14:07:41 +01:00
Laurent Destailleur
943827834c Clean code 2026-02-07 13:21:53 +01:00
Laurent Destailleur
6376f11f27 Trans tooltip 2025-11-17 10:43:08 +01: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
94e76ab91f css 2025-09-28 14:38:24 +02:00
Frédéric FRANCE
eda0b8950b
add doc (#35345)
* clean code

* clean code
2025-09-15 16:18:01 +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
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
Jon Bendtsen
dcdc19d099
GUI: adjust field length in extrafields forms for add and edit (#33867)
Co-authored-by: Jon Bendtsen <xcodeauthor@jonb.dk>
2025-04-16 11:18:38 +02:00
ldestailleur
461cf5616e Clean code. WIP To manage permission on extrafields. 2025-03-18 14:55:37 +01:00
ldestailleur
0f7936220a Clean code and tooltip on using field in extrafields definition 2025-02-21 13:28:32 +01:00
MDW
fd7fee2e8f
Qual: Fix textwithpicto $type argument (0->info,1->help) 2025-02-08 01:49:54 +01:00
Laurent Destailleur (aka Eldy)
c4875fdc94 Fix translation (do not show experimental translation) 2025-02-05 17:08:39 +01:00
Laurent Destailleur
e5b2243565 Merge branch '23.0' of git@github.com:Dolibarr/dolibarr.git into develop 2026-02-07 17:13:24 +01:00
Laurent Destailleur
96a9d1f4e5 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into
develop
2026-02-04 15:08:02 +01:00
Laurent Destailleur
1a26f9a42e Trans 2026-02-04 15:05:35 +01:00
Laurent Destailleur
060720124d Add a tooltip to describe a behavior mentionned in #31536 2024-11-05 18:06:29 +01:00
Frédéric FRANCE
1adc883b56
add baseline exclude for phpstan (#31632)
* add baseline exclude for phpstan

* update

* update

* update

* update

* update

* merge

* restore one filter

* delete old errors

* fix

* fix

* fix

* $moreforfilter can t be empty

* fix

* enable check

* refresh baseline

* add phpdoc

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-11-04 23:53:20 +01:00
Mohamed DAOUD
b4732da616
NEW: Star Field Type for Extra Fields (#31348)
* stars type for extrafields

* min value

* fix phan
2024-10-13 17:24:15 +02:00
Laurent Destailleur
1ae4bf4337 Fix duplicate of doc 2024-09-16 11:34:58 +02:00
Laurent Destailleur
871643857d Fix label-picto of extrafields 2024-08-20 11:47:55 +02:00
Frédéric FRANCE
7ea6a406bd
NEW add geometrics extrafield (#28239)
* add extrafield point

* wip

* wip

* wip

* input

* input

* output values

* update values

* update values

* update values

* update values

* update values

* wip

* add geomapeditor

* add geomapeditor

* add linestring and polygon

* add linestring and polygon

* add linestring and polygon

* add linestring and polygon

* wip

* wip

* can store and retrieve linestring

* can store and retrieve linestring

* coordinates are inverted

* coordinates are inverted

* add multipoints

* use text instead binary

* auto center map

* wip

wip

* doc

* fix

* wip

* wip

* translation dynamic

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-04-24 15:27:38 +02:00
Laurent Destailleur
2f7e9734bd Debug v20 2024-04-23 00:38:56 +02:00
Laurent Destailleur
de58435ef1 FIX: if we stop for security purpose, we must exit a non zero value. 2024-03-16 23:08:15 +01:00
Laurent Destailleur
d0b6b9fe65 Fix with php-cs-fixer 2023-12-04 12:07:53 +01:00
Laurent Destailleur
53dab922fd Fix php8.2 warnings 2023-11-27 11:39:32 +01:00
Laurent Destailleur
cbb60d8b5e Debug v19 2023-10-14 16:23:28 +02:00
Laurent Destailleur
c07abcc67c NEW Add different picto for each type of extrafields (date, string, ...) 2023-09-19 13:24:03 +02:00
Charlène Benke
76d1430dfa
extrafields fails on update (#25356) 2023-07-13 17:14:43 +02:00
Laurent Destailleur
f0a4732d0b Fix php 8.2 2023-06-01 07:35:41 +02:00
Laurent Destailleur
476f95c4f6 Merge branch '17.0' of git@github.com:Dolibarr/dolibarr.git into develop
Conflicts:
	htdocs/adherents/subscription/list.php
	htdocs/comm/action/index.php
	htdocs/core/modules/propale/doc/pdf_azur.modules.php
	htdocs/core/modules/propale/doc/pdf_cyan.modules.php
	htdocs/core/modules/supplier_proposal/doc/pdf_aurore.modules.php
	htdocs/cron/class/cronjob.class.php
	htdocs/eventorganization/class/conferenceorbooth.class.php
	htdocs/modulebuilder/template/myobject_list.php
	htdocs/public/ticket/list.php
	htdocs/supplier_proposal/list.php
	htdocs/ticket/class/ticket.class.php
2023-05-17 00:57:17 +02:00
Frédéric FRANCE
2a9dbd357e
Update admin_extrafields_edit.tpl.php 2023-05-14 11:59:14 +02:00
Frédéric FRANCE
69dcd9dfd0
Update admin_extrafields_edit.tpl.php 2023-05-11 11:23:30 +02:00
Laurent Destailleur
98b01fdc1f Fix complete tooltip 2023-03-17 15:28:07 +01:00
Laurent Destailleur
8021c635cb
Merge pull request #22350 from frederic34/extrafieldpricewithcurrency
NEW extrafield price with currency
2022-09-23 17:44:09 +02:00
Laurent Destailleur
d314ed380b NEW Can edit property css, cssview, csslist on extrafields 2022-09-22 13:01:11 +02:00
Frédéric FRANCE
4bcfbe5d3d fix tpl 2022-09-21 20:05:53 +02:00
Frédéric FRANCE
9ddf65de63 NEW extrafield price with currency 2022-09-21 14:59:46 +02:00