Commit Graph

15697 Commits

Author SHA1 Message Date
Frédéric FRANCE
b3c7c1e0eb clean code (#36099) 2025-11-05 12:11:00 +01:00
MDW
b925dd6c37 Qual: Make $fields type covariant (phpstan) (#36084)
# Qual: Make $fields type covariant (phpstan)

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2025-11-04 14:16:17 +01:00
Laurent Destailleur
74cc41c460 Merge branch '22.0' of git@github.com:Dolibarr/dolibarr.git into develop 2025-11-03 14:27:58 +01:00
Laurent Destailleur
94d1a25d67 Merge branch '21.0' of git@github.com:Dolibarr/dolibarr.git into 22.0 2025-11-03 14:10:57 +01:00
ldestailleur
62760d6195 Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into 21.0 2025-11-03 14:05:58 +01:00
Frédéric FRANCE
6e1f01a942 fix a little warning (#36062) 2025-11-02 12:50:23 +01:00
atm-corentin
a199a7ded9 Fix : performance issues on select bom (#36017)
* optimize SQL query in BOM dropdown by joining product table directly and removing redundant Product object creation

* Change JOIN to INNER JOIN in SQL query

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2025-11-01 17:48:50 +01:00
MDW
073426d97e Qual: Fix multiple phan notices, update baseline (#36022)
* Qual: Fix phan notice with copy of attribute

* Qual: Fix phan notices with cast and updated param definition

* Qual: Fix phan notice with cast

* Qual: Update parameter type hint in utf8_check function

The parameter type hint for the $str parameter in the utf8_check function has been updated to include nullable types (string or int).

* Qual: Update User parameter type to nullable in call_trigger methods

The User parameter in call_trigger methods has been updated to be nullable to accommodate cases where the user object might not be available. This change ensures better flexibility and robustness in the codebase.

* Qual: Update phan baseline

* Qual: phpstan compatible type

* Qual: Add missing type hints for phan

- Add missing type hints for phan
- Fix indentation issues
- Improved consistency in code structure

* Qual: Update field configuration for backward compatibility

Enhanced the field configuration for backward compatibility by adding expected properties to the 'ref' field array.

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2025-11-01 17:47:28 +01:00
Florian Mortgat
dc024fef27 FIX 20.0 ajax_constantonoff + FormSetup were ignoring custom css class (cssClass / $morecss) (#36039) 2025-11-01 00:29:43 +01:00
Laurent Destailleur
5a61116497 Debug v23 2025-10-31 16:55:48 +01:00
Laurent Destailleur
cb7d856aa1 Doc 2025-10-31 16:28:21 +01:00
Laurent Destailleur
8cd3abb78d Can add a category without removing the others 2025-10-31 04:05:45 +01:00
Laurent Destailleur
ee84fadd1c Comment 2025-10-31 02:22:14 +01:00
Laurent Destailleur
9eee6b187f Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2025-10-30 14:42:09 +01:00
Laurent Destailleur
187840dbb3 NEW Can add info of main IT service provider in setup. 2025-10-30 14:41:37 +01:00
Laurent Destailleur
59e0320984 Clean code 2025-10-30 00:28:49 +01:00
Laurent Destailleur
f32aeac947 NEW Show warning on banner when an email is not valid 2025-10-29 17:00:55 +01:00
Laurent Destailleur
d0c4d2d8b4 NEW Output of category tag is nicer for long subcategories. 2025-10-29 16:50:09 +01:00
Laurent Destailleur
d0123c3795 Clean code 2025-10-29 13:28:53 +01:00
Frédéric FRANCE
03ea0cda01 clean code class commondict (#35952)
* add fetchAll in abstract class commondict

* add fetchAll in abstract class commondict

* add fetchAll in abstract class commondict

* add fetchAll in abstract class commondict

* add fetchAll in abstract class commondict

* add fetchAll in abstract class commondict

* add fetchAll in abstract class commondict

* clean code
2025-10-28 01:25:30 +01:00
Charlène Benke
9a9eec75fc add hook on printColDescContent (#35741)
* add hook on printColDescContent

Allow to add more informations on pdf description with hook management.

sample hook use : 
	public function printColDescContent($parameters, &$object, &$action)
	{
		$pdf = $parameters['pdf'];
		if ($object->name == 'sponge mydiscount') {
			//var_dump($parameters, $object, $action); exit;
			$pdf->MultiCell(0, 3, "xxxxx", 0, 'L', 0, 1, '', '', true);
			return 1;
		}
	}

* Add hook support to printColDescContent method
2025-10-26 14:43:40 +01:00
Frédéric FRANCE
675ec205f4 clean phpstan baseline (#35946) 2025-10-25 22:53:09 +02:00
Regis Houssin
591395f44b QUAL uniformize and globalize accesskey/stringforfirstkey + for Mac OS this is "CTRL + Option + key" (#35948)
* QUAL uniformize en globalize accesskey/stringforfirstkey + Mac os is
CTRL + Option + key

* FIX pre-commit error
2025-10-25 22:52:55 +02:00
Laurent Destailleur
cd2f4bb7d2 Merge branch '22.0' of git@github.com:Dolibarr/dolibarr.git into develop 2025-10-24 19:46:38 +02:00
John BOTELLA
bbec4721a4 UIUX : webportal css style PART 03 : allow select login form theme for webportal (#35849)
* WIP : add theme selection

* final style

* fix class

* fix css

* fix comment

* PHP stan

* PHP stan

* PHP stan

* PHP stan

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2025-10-24 11:19:13 +02:00
Bradley Jarvis
3464989848 Fix - Task event linked from task and event (#35888)
This patch fixes task events so that they are correctly displayed in the
task event list and that in the event the Linked Object referes back to
the task.

The issue was that the elementtype value in the database was being
referenced as both 'project_task' and 'task' by different parts of code

Co-authored-by: brad <brad@endurotags.com.au>
2025-10-23 14:47:27 +02:00
Laurent Destailleur
1e84852825 Clean code 2025-10-23 14:26:47 +02:00
Laurent Destailleur
ea0fcd193c Fix CI 2025-10-22 22:31:51 +02:00
Laurent Destailleur
2efff17837 Fix deprecation 2025-10-22 20:06:24 +02:00
Laurent Destailleur
7f04762b17 Fix merge pb 2025-10-22 18:56:05 +02:00
Laurent Destailleur
4bae3f6eec Must use StudlyCaps or PascalCase for class name 2025-10-22 18:15:27 +02:00
Laurent Destailleur
7db8a7eadc Fix regression 2025-10-22 18:12:10 +02:00
Laurent Destailleur
c1831b76a3 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2025-10-22 18:04:57 +02:00
Jon Bendtsen
1f47cfd583 NEW API for getting, adding, deleting and/or modifying email templates (#35853)
* NEW API for getting, adding, deleting and/or modifying email templates

* removing duplicate class formmail which has been moved to a separate file

* hurl file for testing the emailtemplates api

* more comprehensive tests of posting a new email template, all required fields and making sure that ID is rejected

* first GUI test of email templates

---------

Co-authored-by: Jon Bendtsen <xcodeauthor@jonb.dk>
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2025-10-22 18:04:39 +02:00
Laurent Destailleur
e314c075a7 Removed property that seems not used. 2025-10-22 17:59:51 +02:00
Vincent Maury
27ed249561 NEW : add supplier payment mail template (#35877)
* Fix 35865 no formail displayed in supplier payment

* - add possibility to create custom mail template for supplier invoices payment
- add a default template
- add 2 new substitutions keys : __SUPPLIER_PAYMENT_INVOICES_LIST__ and  __SUPPLIER_PAYMENT_INVOICES_TOTAL__

* - add possibility to create custom mail template for supplier invoices payment
- add a default template
- add 2 new substitutions keys : __SUPPLIER_PAYMENT_INVOICES_LIST__ and  __SUPPLIER_PAYMENT_INVOICES_TOTAL__

---------

Co-authored-by: vmaury <vmaury@vmaury-Lafite-Pro-16-AMD>
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2025-10-22 17:44:01 +02:00
Laurent Destailleur
e3ff9e5c2d Clean code 2025-10-22 14:17:04 +02:00
Laurent Destailleur
481f3f1a9e Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2025-10-22 11:06:14 +02:00
Laurent Destailleur
be351614e2 NEW DEV Can set color of the on/off button. 2025-10-22 11:05:59 +02:00
Vincent Maury
0ddd2b194f Fix 35865 no formail displayed in supplier payment (#35867)
Co-authored-by: vmaury <vmaury@vmaury-Lafite-Pro-16-AMD>
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2025-10-22 02:32:36 +02:00
VIAL-GOUTEYRON Quentin
7aa9633901 FIX : Perf for bom select (#35871)
* ADD: Option to optimize BOM combo list performance with search-based loading

* FIX: Remove debug backtrace and exit statement in security.lib.php

* FIX: Use dynamic database prefix in BOM combo list query

* FIX: Correct spacing issue in 'elseif' condition in bom.php
2025-10-22 00:58:55 +02:00
Frédéric FRANCE
c80858e712 fix CI branch v21 (#35876)
* fix CI

* add same fix than in develop
2025-10-22 00:51:20 +02:00
Ryad ABANI
3be9f0e9cc FIX: notification email not sent : NOTIFICATION_EMAIL_FROM is replaced with MAIN_MAIL_EMAIL_FROM if it's empty (#35881)
Co-authored-by: Ryad ABANI <ryad.abani@scopen.fr>
2025-10-22 00:45:15 +02:00
Lucas Marcouiller
ad67faa01d New all project contact in task creation (#35862)
Co-authored-by: Lucas Marcouiller <lmarcouiller@dolicloud.com>
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2025-10-21 02:13:10 +02:00
Alexandre SPANGARO
cdd4dde166 NEW Accountancy - Various payment - Add script to greyed out subledger_account if general ledger is not centralized (#35842)
* NEW Accountancy -  Add data-centralized in select_account()

* NEW Accountancy - Add script to greyed out subledger_account if general ledger is not centralized

* Fix phan

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2025-10-21 02:08:19 +02:00
Laurent Destailleur
4799705cd8 Merge branch '22.0' of git@github.com:Dolibarr/dolibarr.git into develop 2025-10-21 02:03:34 +02:00
Laurent Destailleur
d49426ef30 Merge branch '21.0' of git@github.com:Dolibarr/dolibarr.git into 22.0 2025-10-21 01:49:53 +02:00
Laurent Destailleur
3fca1d8cb1 Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into 21.0 2025-10-21 01:46:46 +02:00
Laurent Destailleur
f82675c729 Merge branch '19.0' of git@github.com:Dolibarr/dolibarr.git into 20.0 2025-10-21 01:40:55 +02:00
Laurent Destailleur
700b89d578 Merge branch '18.0' of git@github.com:Dolibarr/dolibarr.git into 19.0 2025-10-21 01:35:08 +02:00