Commit graph

7 commits

Author SHA1 Message Date
Frédéric FRANCE
6cdd8e27b8
Qual: Use dol_include_once() to load the registry's headfile
require_once DOL_DOCUMENT_ROOT.'/'.$pagedef['headfile'] bypassed
Dolibarr's standard mechanism for a core file loading a module file
(dol_include_once(), via dol_buildpath()): no custom/ alternate-root
resolution, no '..' path-traversal guard, no graceful failure/logging
if the path were ever wrong. headfile values are plain relative paths
(e.g. 'core/lib/company.lib.php') so no registry changes needed.
2026-08-12 07:43:16 +02:00
Frédéric FRANCE
943d99f0ea
NEW: Wire up initHooks() so modules can register for the extrafields admin hook
Calls $hookmanager->initHooks(array('extrafieldsadmin', 'globaladmin'))
before getExtrafieldsAdminMap() runs, so a module declaring either
context in its module_parts['hooks'] descriptor gets its actions_xxx
class instantiated and can respond to the 'getExtrafieldsAdminMap'
hook added in the previous commit. Follows the {feature}admin +
globaladmin naming convention used by other admin pages (e.g.
admin/company.php, admin/defaultvalues.php).
2026-08-12 06:50:12 +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
4d1764af8b
NEW: Add elementtype-override support and agenda registry entry for the unified extrafields page
Completes the agenda extrafields migration split from the previous commit: the
unified controller now lets a registry entry override the real elementtype
passed downstream while the whitelist still gates on the untrusted URL param,
letting the new 'agenda' entry and Task 11's existing 'actioncomm' entry both
operate on the same llx_actioncomm table with distinct tab-bar presentations.
2026-08-11 20:28:59 +02:00
Frédéric FRANCE
e952bc9770
FIX: Support callable headlabel/textobject to preserve conditional product/service page text 2026-08-11 16:59:51 +02:00
Frédéric FRANCE
e84a8bbe8d
FIX: Split registry headlabel/textobject to avoid conflating two distinct original strings 2026-08-11 16:45:50 +02:00
Frédéric FRANCE
d2b6fa3d60
NEW: Unify extrafields admin pages into a single secured page (societe, socpeople pilot) 2026-08-11 16:38:26 +02:00
Renamed from htdocs/societe/admin/societe_extrafields.php (Browse further)