Commit graph

153552 commits

Author SHA1 Message Date
Laurent Destailleur
08bd331d0b FIX option MEMBER_SEARCH_MEMBER_PUBLIC_FORM_CREATE 2026-04-21 14:32:55 +02:00
Laurent Destailleur
3b579d648b Look and feel v24 2026-04-21 13:24:51 +02:00
Jon Bendtsen
59ea1f890d
UXUI Improve public ticket message list (#37926)
* Improve UXUI on public ticket interface

* Use the style method to remove the border in border to preserve the edit pencil

* Switching back to 2 column layout

* reduce changes

* Identical look'n'feel between just viewing the list and editing a new response

* Attempt at fixing phan

---------

Co-authored-by: Jon Bendtsen <jonbendtsen@jonb.dk>
2026-04-21 11:52:20 +02:00
Jon Bendtsen
29aa7b2938
UXUI Change mass mailing icon to bulk-mail (#37951)
Co-authored-by: Jon Bendtsen <jonbendtsen@jonb.dk>
2026-04-21 11:48:00 +02:00
Frédéric FRANCE
9bf8103dad
clean code (#37947)
* fix categories translations

* fix categories translations

* fix categories translations

* fix categories translations

* Update traduction.php

* Update traduction.php

* Update photos.php

* fix categories translations

* fix categories translations

* fix categories translations

* fix categories translations

* fix categories translations

* fix categories translations

* fix categories translations

* fix categories translations

* fix categories translations

* fix categories translations

* fix categories translations

* fix categories translations

* fix categories translations

* fix categories translations

* fix categories translations

* fix categories translations

* fix categories translations

* fix categories translations

* fix categories translations

* fix

* fix

* fix

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2026-04-21 11:47:12 +02:00
MDW
295bbc08ec
Qual: Fix PHPStan and Phan notices (#37950)
* Qual: Update GETPOST calls to handle hint array type

# Qual: Update GETPOST calls to handle hint array type

- Updated GETPOST calls for 'amounts' and 'multicurrency_amounts' to explicitly handle array inputs by adding the 'array' type parameter

This fixes PHPStan notices where expressions expect an array.

* Qual: Set type for status label mapping in LignePrelevement (PHPStan)

# Qual: Set type for status label mapping in LignePrelevement (PHPStan)

Added type hint to property `$labelStatus`

* Qual: Add type hints to datec and datep properties in PaymentSocialContribution

# Qual: Add type hints to datec and datep properties in PaymentSocialContribution

Added type hints to datec and datep properties.

* Qual: Add type hint to MIME mapping for image file extensions

# Qual: Add type hint to MIME mapping for image file extensions

Added type hint to `$image_types`

* Qual: Better type hint for getAllItemsLinkedByObjectID method

# Qual: Better type hint for getAllItemsLinkedByObjectID method

The return type annotation for the getAllItemsLinkedByObjectID method has been updated from 'array|int' to 'string[]|int'.

* Qual: Better type hint for fetchAll return value

# Qual: Better type hint for fetchAll return value

Suggest thet fetchAll returns list of objects

* Qual: Remove array from return value hint

* Qual: Add missing type hints to Notify

* Qual: Cast resource IDs to integers in getAllResourcesOfWorkstation

# Qual: Cast resource IDs to integers in getAllResourcesOfWorkstation

Ensure returned value is list of ints as parent::getAllItemsLinkedByObjectID does not ensure value type.

* Qual: Ensure correct return type for getAllGroupsOfWorkstation

* Qual: Improve typing hints

* Qual: Improve typing hints, ignore some notices

* Qual: Fix argument type

* Qual: Improve type hints

* Qual: Improve typing hints

* Qual: Add missing type hint

* Qual: Update Phan baseline

* Qual: Remove redundant exit (PHPStan, Phan)
2026-04-21 02:28:35 +02:00
John BOTELLA
ce3d82417e
New : js hook for setup options (#37940)
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2026-04-20 22:22:06 +02:00
Laurent Destailleur
351531c10c Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2026-04-20 22:20:29 +02:00
Laurent Destailleur
98b74773fd Merge branch '23.0' of git@github.com:Dolibarr/dolibarr.git into develop 2026-04-20 22:20:19 +02:00
Laurent Destailleur
19b8473d26 Try a better fix #37791 and fix #37859 2026-04-20 22:17:42 +02:00
Frédéric FRANCE
ca54b2a6ff
fix categories translations (#37912)
* fix categories translations

* fix categories translations

* fix categories translations

* fix categories translations

* Update traduction.php

* Update traduction.php

* Update photos.php

* fix categories translations

* fix categories translations

* fix categories translations

* fix categories translations

* fix categories translations

* fix categories translations

* fix categories translations

* fix categories translations

* fix categories translations

* fix categories translations

* fix categories translations

* fix categories translations

* fix categories translations

* fix categories translations

* fix categories translations

* fix categories translations

* fix categories translations

* fix categories translations

* fix categories translations

* fix

* fix

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2026-04-20 22:11:20 +02:00
Frédéric FRANCE
db81523f62
make less sql request (#37919)
* make less sql request

* fix

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2026-04-20 22:07:01 +02:00
Jon Bendtsen
8f0b7e3f06
NEW massaction sendEmail on the list of invoices for a given product (#37937)
* NEW massaction for invoice list which contains a given product

* This sends 1 email when tested with 1 selection, will have to cleanup

* cleaning up my various debug messages and comments

* fix pre-commit hook errors

* PHPstan fixes

* typecasting invoice id due to PHAN complaint

* Redefine how selectedfields variable is defined

* fix PHPstan and phan using advice from mdeweerd

* directly, not saved as string

* fix pre-commit fail

* put in a string

---------

Co-authored-by: Jon Bendtsen <jonbendtsen@jonb.dk>
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2026-04-20 22:04:17 +02:00
John BOTELLA
c4968aedc3
New js context hook for object line create tpl (#37943)
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2026-04-20 22:01:27 +02:00
LauraDiaz
b649728014
FIX Prevent project creation when required extrafields validation fails (#37939)
* Refactor contact addition logic in card.php

Prevent calling create() when required extrafields validation fails

* Update card.php

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2026-04-20 21:18:49 +02:00
Jon Bendtsen
1c0d20e7d9
FIX API_ENABLE_LOGIN_API should be integer, not string (#37941)
* FIX API_ENABLE_LOGIN_API should be integer, not string

* Update api_login.class.php

* Update api_users.class.php

* Update api_login.class.php

---------

Co-authored-by: Jon Bendtsen <jonbendtsen@jonb.dk>
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2026-04-20 21:18:30 +02:00
Alexandre SPANGARO
456034d286
NEW Accountancy - Add default options for export (#37938)
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2026-04-20 21:18:15 +02:00
Frédéric FRANCE
a26acf7251
clean code (#37921)
* clean code

* fix

* fix

* fix

* fix

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2026-04-20 20:42:02 +02:00
Laurent Destailleur
b15add41f8 Clean CI file not used 2026-04-20 18:50:14 +02:00
Laurent Destailleur
3a0183e3d1 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2026-04-20 18:45:26 +02:00
Laurent Destailleur
3098031a97 Fix ci 2026-04-20 18:45:09 +02:00
MDW
36b940974a
Qual: Fix CI (PHPStan) (#37945)
* Qual: Fix CI (PHPStan)

# Qual: Fix CI (PHPStan)

Fix two PHPStan messages

* Update html.formticket.class.php

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2026-04-20 18:39:58 +02:00
Laurent Destailleur
21d3e3ff99 Fix travis 2026-04-20 18:39:37 +02:00
Laurent Destailleur
f3c2eeeb3b Try to fix CI 2026-04-20 18:22:41 +02:00
Laurent Destailleur
e38e0dea81 Debug v24 2026-04-20 18:19:16 +02:00
Laurent Destailleur
e88d452eaf Doc 2026-04-20 16:51:32 +02:00
Laurent Destailleur
ee3bcd8000 css 2026-04-20 16:47:53 +02:00
Laurent Destailleur
eeffd44184 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2026-04-20 16:40:19 +02:00
Laurent Destailleur
c97415a3a9 CI 2026-04-20 16:40:10 +02:00
Jon Bendtsen
fec836ab59
Uxui remove border under classification of ticket (#37927)
Co-authored-by: Jon Bendtsen <jonbendtsen@jonb.dk>
2026-04-20 14:05:00 +02:00
Laurent Destailleur
bb55cbead5 Fix ci 2026-04-20 13:33:36 +02:00
Laurent Destailleur
2106a54161 CI 2026-04-20 13:16:47 +02:00
Laurent Destailleur
6c044ec7e6 CI 2026-04-20 13:15:51 +02:00
Laurent Destailleur
ccf2e4dd34 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2026-04-20 12:59:11 +02:00
Laurent Destailleur
5e585e69c5 Fix travis now API_ENABLE_LOGIN_API is off by default 2026-04-20 12:58:51 +02:00
Laurent Destailleur
27cbf88c9b Try a fix for #36949 and #37857 2026-04-20 12:50:40 +02:00
Jon Bendtsen
2fc5c38ddc
Convert orderBy into sortfield,sortorder used by this->db->order function(sortfield, sortorder) (#37936)
Co-authored-by: Jon Bendtsen <jonbendtsen@jonb.dk>
2026-04-20 12:47:31 +02:00
MDW
43a958b925
Qual: Fix CI notices after changes to fields type (#37934)
* Qual: CI notices after changes to fields type

# Qual: CI notices after changes to fields type

The phpstan regexes to ignore notices no longer matched because of the type change.
Update the code to fix the notices.

* Qual: Ignore false positive (Phan)
2026-04-20 12:38:14 +02:00
MDW
1743565a50
Qual: Fix PHPStan notices (#37933)
* Qual: Fix phpstan notice with cast

* Qual: Fix initialiser (phpstan) and narrow some types

* Qual: Fix typing for object->type field (phpstan)

* Qual: Update preg_quote usage in step2.php

# Qual: Ignore false phpstan positive for preg_match

Add comment to ignore phpstan warning for preg_match argument

* Qual: Extend accepted types for arrayoptions (phpstan)

* Qual: Fix type hint typo

* Qual: Fix type for contact_id assignment

* Qual: Add menuonly as allowed reloadmode

* Qual: Add PHPStan ignore comments for argument.type

* Qual: Ignore unused parameter in constructors (PHPStan)

* Qual: Add type hint for $TMsg (PHPStan)

* Qual: Cast array values to match expected type (PHPStan)

* Qual: Cast $remise_percent_ligne to float (PHPStan)

* Qual: Add array specifier to GETPOST for correct type (PHPStan)

* Qual: Update sumSituation() argument types

* Qual: Cast value to string for printStdColumnContent (PHPStan)

* Qual: Ignore PHPStan notice for autoload function return value

* Qual: Fix type of argument to Menubase::recur (PHPStan)

* Qual: Fix return type hint (PHPStan)

* Qual: Add $dolibarr_main_db_type as default global

* Qual: Update Phan baseline (due to PHPStan fix)
2026-04-20 12:36:21 +02:00
MDW
ca850421f0
Qual: Fix phpstan notices (#37932)
* Qual: Fix phpstan notices

# Qual: Fix phpstan notices.

- Fix ModeleBoxes::$info_box_contents typing;
- Fix validate value to non-string (htdocs/asset/card.php)
- Fix type for lines_model in FormMail

* Qual: Fix get_tz_array() return typehint

* Qual: Fix arguments types to mktime, dol_time

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2026-04-20 12:35:28 +02:00
Laurent Destailleur
ddf2a617e1 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2026-04-20 12:34:30 +02:00
Laurent Destailleur
30430e1674 NEW Enable AI tools on the message editor for tickets 2026-04-20 12:34:18 +02:00
Laurent Destailleur
2ad6f9eccf Debug v24 2026-04-20 04:02:51 +02:00
Laurent Destailleur
5603f382da Fix warning 2026-04-20 03:48:28 +02:00
Laurent Destailleur
e7c3a2f4bf Introduce FCKEDITOR_ENABLE_IMAGE_UPLOAD. Upload on ckeditor became
useless (copy/paste is better and can join files on emails)
2026-04-20 02:24:19 +02:00
Laurent Destailleur
9b4c143ebf CI 2026-04-20 01:48:31 +02:00
Laurent Destailleur
a45d5be099 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into
develop
2026-04-20 00:42:48 +02:00
Laurent Destailleur
299c0946df Login API are off by default (API must be used with the bearer token). 2026-04-20 00:26:46 +02:00
Laurent Destailleur
531311c1be Fix regression in email title (must contains ref of ticket)
Fix the status private is already stored in code, so we can show it in
list with a picto.
2026-04-19 17:47:39 +02:00
Jon Bendtsen
37bcbadc19
UXUI Message Summary on ticket messages (#37928)
Co-authored-by: Jon Bendtsen <jonbendtsen@jonb.dk>
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2026-04-19 16:18:55 +02:00