Commit Graph

15723 Commits

Author SHA1 Message Date
Laurent Destailleur
cca679c0a1 Add property parent 2025-11-09 21:57:56 +01:00
Charlène Benke
cb1b29dd6a Add sortorder parameter to selectForFormsList method (#36173)
there are a problem on many extrafields list : we can't sort list by decrease and sort from a specific fields since we have add an sql prevention on filter based on : separator (who is used to separate parameters)

@eldy  i propose to remplace on extrafields parameters the : in the sql injection prevention by another caracters, by exemple the ; or the § , and replace it after having explode all the parameters

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2025-11-09 21:23:32 +01:00
Laurent Destailleur
f8e9d223f9 Clean code 2025-11-09 18:37:29 +01:00
MDW
c39e87d703 Qual: Make $fields covariant, define type for $FIELDS in BankAccounts api (#36188)
* Qual: Make $fields covariant

* Qual: Update BankAccounts class phpDoc ($FIELDS)

# Qual: Update BankAccounts class phpDoc ($FIELDS)

Updated the documentation for the $FIELDS property.
2025-11-09 18:06:58 +01:00
Laurent Destailleur
bd8b081a37 Debug v23 2025-11-09 16:37:11 +01:00
Laurent Destailleur
94ebf6e583 Debug v23 2025-11-09 13:42:45 +01:00
Laurent Destailleur
34145b8e45 Clean code 2025-11-09 12:43:04 +01:00
Laurent Destailleur
cf651c7544 Clean code 2025-11-09 03:58:55 +01:00
Laurent Destailleur
ff80a85962 css 2025-11-09 03:50:40 +01:00
Laurent Destailleur
08c281b2e4 Fix date input on smartphone 2025-11-09 03:20:48 +01:00
Frédéric FRANCE
b8c8bc4b01 fix fields doc (#36175)
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2025-11-09 01:20:11 +01:00
Frédéric FRANCE
9491d880cf clean code (#36170)
* clean code

* Update bom.class.php

* Update commondocgenerator.class.php

* fix

* fix

* fix

* fix

* fix

* fix

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2025-11-09 01:19:31 +01:00
Laurent Destailleur
9f215b7b1d Debug v23 2025-11-08 17:12:41 +01:00
Frédéric FRANCE
e343b4ab1f clean code (#36166)
* clean code

* clean code

* clean code

* clean code

* clean code

* clean code

* clean code

* clean code
2025-11-08 14:01:19 +01:00
Frédéric FRANCE
936b3cddfb fix common delete (#36167) 2025-11-08 11:57:22 +01:00
MDW
d4d06084a5 Qual: Add Typing, update language in CommonStickerGenerator class (#36161)
- Added type hints for phpstan
- Updated comments to English
- Improved some comments
2025-11-08 11:40:01 +01:00
Laurent Destailleur
9ec5b94808 css 2025-11-07 20:02:16 +01:00
Laurent Destailleur
4d2e51681f Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2025-11-07 19:26:08 +01:00
Laurent Destailleur
dfbf173b17 Merge branch '22.0' of git@github.com:Dolibarr/dolibarr.git into develop 2025-11-07 19:25:42 +01:00
Frédéric FRANCE
cad3574179 common delete also files (#36146)
* common delete also files

* common delete also files

* common delete also files

* common delete also files

* common delete also files

* common delete also files
2025-11-07 18:44:14 +01:00
Laurent Destailleur
355092f6d7 Debug v23 2025-11-07 18:12:46 +01:00
Alexandre SPANGARO
af4630c456 Typo (#36123) 2025-11-06 17:11:02 +01:00
Frédéric FRANCE
ccc5707146 phpstan doc (#36129)
* phpstan doc

* Update html.form.class.php
2025-11-06 17:09:52 +01:00
Regis Houssin
fa10fc0f94 FIX avoid NULL value (#36126) 2025-11-06 13:15:03 +01:00
Laurent Destailleur
2f898ff188 Debug v23 2025-11-06 10:50:31 +01:00
Laurent Destailleur
37a0918393 CSS 2025-11-05 21:37:27 +01:00
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