Commit graph

154253 commits

Author SHA1 Message Date
Laurent Destailleur
c50e8a4d32 Debug v24 2026-05-27 15:47:29 +02:00
Laurent Destailleur
3fcf44b6f2 Debug v24 2026-05-27 12:43:14 +02:00
Laurent Destailleur
d0bcf2ce52 Doc 2026-05-27 10:56:39 +02:00
Laurent Destailleur
597f9456ae Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2026-05-27 04:53:02 +02:00
Laurent Destailleur
4a900983c8 Debug v24 2026-05-27 04:52:43 +02:00
Laurent Destailleur
965f9b3f19 Menu statistics as a view mode 2026-05-27 02:55:34 +02:00
Joris Le Blansch
411bc987a4
CLOSE #35561 - End-of-month calculation functionality for recurring invoices (#38444) 2026-05-27 01:13:12 +02:00
Laurent Destailleur
8c9bc6b1c3 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2026-05-26 20:47:17 +02:00
Laurent Destailleur
b13877e13c Fix regression 2026-05-26 20:47:07 +02:00
MDW
8e01162c73
Fix CI: fix current PHPStan notices and new notices in Phan cti. (#38447)
* Fix: Correct manifest.json.php for logo handling

# FIX: Update manifest.json.php for logo handling

All the alternative logo settings were applied only when MAIN_INFO_SOCIETE_LOGO_SQUARRED is true,
also implying a duplicate test.
It seems more likely that only one of the options is needed.
So changed it to a simple else clause (no extra condition)

* Qual: Ignore PHPStan notice

* Fix: PHPStan notice

When `!empty($valuetoshow)` already tests `(string) $valuetoshow != '0'`.

* Qual: Fix Phan notices in modulebuilder updates

# Qual: Fix Phan notices in modulebuilder updates

Fix PhanCompatibleTypedProperty, PhanPluginRedundantReturnComment notices
2026-05-26 19:21:29 +02:00
Laurent Destailleur
75fa472f5a Debug 2026-05-26 18:48:53 +02:00
Laurent Destailleur
754f991798 Debug v24 2026-05-26 17:12:48 +02:00
Laurent Destailleur
abc8dae32a Debug v24 2026-05-26 17:05:17 +02:00
Laurent Destailleur
729311854a Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2026-05-26 16:58:37 +02:00
Laurent Destailleur
16956c092a Debug 2026-05-26 16:58:26 +02:00
Laurent Destailleur
71cf029925 css 2026-05-26 16:44:24 +02:00
Charlène Benke
46f4f49420
Add custom tpl to note (#38437)
* add custom tpl to note propal

Updated note.php to include template files from multiple directories.

* add custom tpl to note facture

Refactor template inclusion for notes to search multiple directories.

* add custom tpl to note fichinter

Refactor template inclusion for notes to check multiple directories.

* add custom tpl to note tocket

Updated copyright year for Charlene Benke and modified template inclusion logic.

* add custom tpl to note (mrp)

Refactor note template inclusion to support multiple directories.

* add custom tpl to note module builder

Updated the template to include notes from multiple directories.

* Refactor template inclusion in note.php

Updated note.php to include template files dynamically from multiple directories.

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2026-05-26 16:02:36 +02:00
Laurent Destailleur
c06d30c6e2 Debug v24 2026-05-26 15:47:44 +02:00
Laurent Destailleur
58e52ee86f Doc 2026-05-26 14:35:00 +02:00
Laurent Destailleur
b87149d839 More complete setup page 2026-05-26 13:52:34 +02:00
Laurent Destailleur
92f6b3e3cf Debug repair tool 2026-05-26 13:40:49 +02:00
Laurent Destailleur
98781ce77f Fix regression 2026-05-26 13:34:12 +02:00
Laurent Destailleur
040efc03cf Fix duplicate manifest.json file 2026-05-26 13:33:38 +02:00
Laurent Destailleur
088b008872 warning 2026-05-26 13:31:16 +02:00
Laurent Destailleur
f7b0e65bc2 Fix fatal error 2026-05-26 13:04:00 +02:00
Laurent Destailleur
259d9b63c3 Fix warning 2026-05-26 12:02:19 +02:00
Laurent Destailleur
f0080d80b8 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2026-05-26 11:49:00 +02:00
Laurent Destailleur
85e215142f Fix warning 2026-05-26 11:48:50 +02:00
Alexandre SPANGARO
2b06401294
Merge pull request #38441 from frederic34/patch-11
fix CI
2026-05-26 10:42:59 +02:00
Frédéric FRANCE
420a231151
fix CI 2026-05-26 10:13:34 +02:00
Alexandre SPANGARO
ca42a7da97
Merge pull request #38214 from JonBendtsen/transport_translation_error
Fix transport translation error #38125
2026-05-26 10:08:32 +02:00
Alexandre SPANGARO
8b93a4e38a
Merge branch 'develop' into transport_translation_error 2026-05-26 09:34:22 +02:00
Alexandre SPANGARO
39fe0c2715 CI 2026-05-26 09:33:43 +02:00
Alexandre SPANGARO
b628378aed
Merge branch 'develop' into transport_translation_error 2026-05-26 09:20:41 +02:00
dzprod
fac8752e15
FIX: TakePOS dropdown user menu clipped by overflow:hidden under MD theme (#38431)
* Fix dropdown menu clipping in MD themefix(takepos): dropdown user menu clipped by overflow:hidden under MD theme

overflow:hidden on #topnav (MD theme) and body.bodytakepos (TakePOS) clips the dropdown-menu. Using position:fixed bypasses both stacking contexts.

* fix(takepos): use tabs indentation in dropdown fix CSS

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2026-05-26 06:52:25 +02:00
Laurent Destailleur
614ff412de Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into
develop
2026-05-26 06:49:20 +02:00
Laurent Destailleur
54eb261e5a Debug v24 - Must check siren and email in registration page 2026-05-26 06:36:12 +02:00
github-actions[bot]
ade06212fe
PHPStan > Update baseline (#38436)
Co-authored-by: Dolibot <dolibarr-bot@users.noreply.github.com>
2026-05-26 05:17:58 +02:00
Jon Bendtsen
ce1ad94f5a
New add status filter to societe->getContacts function (#38440)
Co-authored-by: Jon Bendtsen <jonbendtsen@jonb.dk>
2026-05-26 05:17:26 +02:00
Alexandre SPANGARO
0c16f4ea94
FIX #37019 Adherent - Retablish no-email field (#38423)
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2026-05-26 05:16:22 +02:00
Laurent Destailleur
af08694e9d More complete return value. 2026-05-26 03:54:31 +02:00
Laurent Destailleur
6cb08d00d9 css 2026-05-26 03:47:49 +02:00
Vincent Penel
28f1fbb11f
NEW add external contacts on the tickets event (#37870)
* add external contacts on the tickets event

* add hook createTicketMessageExternalContacts

* type

* opti

* delete result

* move hook

* Retour PR
2026-05-25 23:32:29 +02:00
Laurent Destailleur
3428b8a027 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2026-05-25 15:56:05 +02:00
Laurent Destailleur
2f226300f3 FIX Pagination in dictionary and email template list 2026-05-25 15:55:50 +02:00
VIAL-GOUTEYRON Quentin
fefbe81380
NEW : Replace MyObject MyModule occurences (#38370)
* [COREMB] Centralize myobject/mymodule substitutions via NamingContract value object

Introduce NamingContract (immutable value object) and NamingContractValidator
to replace 6 scattered ad-hoc $arrayreplacement blocks across index.php and
modulebuilder.lib.php. Fixes a critical bug where MYOBJECT token was commented
out in initobject, leaving generated class files with unsubstituted placeholders.

- NamingContract: canonical ordered substitution map (12 tokens with object,
  7 module-only), applyTo() via str_replace (not make_substitutions, to avoid
  processing Dolibarr __(key)__ patterns in raw templates), applyToFilename()
  for lowercase-only filename substitution
- StrictNamingContractValidator: post-generation scan for residual myobject/
  mymodule tokens, skipping /* BEGIN/END MODULEBUILDER */ structural markers
- modulebuilderValidateGeneratedFile() helper: non-blocking warnings with
  XSS-safe output via dol_escape_htmltag()
- Collision guard: InvalidArgumentException if module === object name
  (case-insensitive), wrapped in try-catch at all instantiation sites
- 24 PHPUnit tests, 52 assertions

* fix(initobject): apply object substitution to all module PHP files

After initmodule creates the module structure, files like index.php,
lib/module.lib.php, admin/setup.php and class/api_module.class.php
still contain myobject/mymodule placeholders. initobject now scans
ALL PHP files in the module directory and applies the full NamingContract
substitution, and deletes the orphan stats/myobject_index.php placeholder.

* fix(initmodule): prevent array_merge from renumbering the '500000' key

PHP casts numeric string keys like '500000' to int(500000) internally.
array_merge() then renumbers integer keys starting from 0, turning
'500000' into key 0. make_substitutions() then calls str_replace(0, ...)
which casts 0 to the string '0', replacing EVERY zero digit in every
generated file with the idmodule value.

Fix: replace the bare '500000' key with '$this->numero = 500000' so that
array_merge sees a non-numeric string key and preserves it as-is.

* Fix initapi: apply header substitution after addObjectsToApiFile

addObjectsToApiFile substitutes properties/constructor/includes via regex
but leaves PHPDoc header and class declaration with mymodule/myobject tokens.
Fix: apply $arrayreplacement (minus 'MYOBJECT' uppercase key) after
addObjectsToApiFile to resolve the remaining residuals.

'MYOBJECT' is excluded to preserve the /* BEGIN MODULEBUILDER API MYOBJECT */
placeholder that addObjectsToApiFile relies on for future object additions.

* Move NamingContractTest to core test directory

NamingContract and NamingContractValidator are core modulebuilder classes;
their tests belong alongside other Dolibarr core tests in test/phpunit/,
not in htdocs/modulebuilder/test/phpunit/ (the custom-module pattern).

Updated require_once paths accordingly.

* fix useless file

* fix(phpcs): add missing @param descriptions and function docblocks

- NamingContract: merge adjacent string literals in exception message,
  add description to @param $content in applyTo()
- NamingContractValidator: add descriptions to all bare @param tags
  in interface and StrictNamingContractValidator methods
- NamingContractTest: add /** @return void */ docblocks to all test
  methods, merge unnecessary string concat on template variable

* fix(phan/phpstan): remove readonly, add baselines for test file

- NamingContract: replace readonly properties with plain public string
  (readonly requires PHP 8.1, phan minimum target is PHP 7.2)
- dev/tools/phan/baseline.txt: add NamingContractTest.php suppression
  for PhanUndeclaredMethod (PHPUnit stubs not available in phan scope)
- NamingContractTest.php: add @phpstan-ignore class.notFound on class
  declaration and method.notFound on each assertion call (PHPUnit not
  in phpstan bootstrap, consistent with CommonClassTest.class.php)

* fix(phan/phpstan): suppress typed property warnings, NoopNew, class.notFound

- baseline.txt: add PhanCompatibleTypedProperty for NamingContract.class.php
  (typed properties require PHP 7.4, phan min target is 7.2 — warning only
  but phan exits 1 on any issue including warnings)
- baseline.txt: add PhanNoopNew for NamingContractTest.php (constructor
  called for exception side-effect in guard tests is intentional)
- NamingContractTest.php: move @phpstan-ignore class.notFound to inline
  comment on class declaration (docblock placement not picked up by phpstan)

* fix(phan/phpstan): add missing phan suppress on index.php l.574, fix phpstan class docblock

- index.php l.574: add @phan-suppress-next-line PhanPluginSuspiciousParamPosition
  (same pattern as l.577 and l.587 for identical dolReplaceInFile calls
  where local variable name $destfile matches parameter #3 of the function)
- NamingContractTest.php: use standalone /** @phpstan-ignore class.notFound */
  docblock before class declaration (inline // comment not picked up by phpstan
  on class declarations; separate docblock matches CommonClassTest.class.php pattern)

* Update baseline.txt

* fix(phan): add phan-file-suppress on NamingContractTest for PHPUnit undeclared methods

* fix(phan): suppress PhanNoopNew on expectException patterns in NamingContractTest

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2026-05-25 14:52:38 +02:00
MDW
80d8a459e1
Qual: Fix Hookmanager::executeHooks() notices with extended type (#38416)
# Qual: Fix Hookmanager::executeHooks() notices with extended type

Add int as possible key type to array corrects multiple notices.
2026-05-25 14:43:57 +02:00
MDW
180088d1ee
Qual: Add missing sqlite3 stub for Phan (#38426)
# Qual: Add missing sqlite3 stub for Phan

About 43 Phan notices on https://cti.dolibarr.org are present
because of missing information about SQLite3.
This stub and configuration change adds the information.

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2026-05-25 13:30:24 +02:00
Jon Bendtsen
c1a4f3c181
NEW UXUI add helptext to function formconfirm (#38435)
* Qual public function formconfirm - replace spaces with tabs

* NEW add helptext to function formconfirm

* Semi hiding flex box

* fix broken html

* Remove height adjustment when helptext because helptext parameter is supplied after height, meaning caller will already know

* restore image help to form question

* no bold question

* Remove duplicate tr tag

* remove redundant height 1px since border-top is 2px

---------

Co-authored-by: Jon Bendtsen <jonbendtsen@jonb.dk>
2026-05-25 13:29:45 +02:00
Jon Bendtsen
abfce25afc
Qual public function formconfirm - replace spaces with tabs (#38430)
Co-authored-by: Jon Bendtsen <jonbendtsen@jonb.dk>
2026-05-25 13:28:57 +02:00