Commit Graph

4139 Commits

Author SHA1 Message Date
Laurent Destailleur
f1bc41d100 Merge branch '19.0' of git@github.com:Dolibarr/dolibarr.git into develop 2024-04-23 22:36:13 +02:00
Laurent Destailleur
60c0fc2386 Fix warning PHP 8.2 2024-04-22 18:42:34 +02:00
Laurent Destailleur
8c898f82b8 Debug v20 2024-04-22 16:25:28 +02:00
John BOTELLA
cbed0292d1 FIX : Ergonomic fail part02 (#29373)
* Fix ergo fail

* Fix read more

* Fix read more

* Update functions.lib.php

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-04-22 14:32:07 +02:00
Laurent Destailleur
2a4342a515 Move functions into file dedicated to country FI 2024-04-20 21:18:42 +02:00
Laurent Destailleur
b7a07d8348 Look and feel v20 2024-04-19 15:54:09 +02:00
Laurent Destailleur
557c723c27 FIX logo and escape in RSS
Conflicts:
	htdocs/admin/external_rss.php
	htdocs/core/lib/functions.lib.php
2024-04-18 20:26:38 +02:00
Laurent Destailleur
f6414f8b1d FIX logo and escape in RSS 2024-04-18 20:17:10 +02:00
Frédéric FRANCE
dc822d271d fix test variable has been renanamed in v20 (#29392) 2024-04-18 13:53:36 +01:00
Frédéric FRANCE
b6cadde8d3 fix typo for phpstan (#29380) 2024-04-18 11:21:30 +01:00
Laurent Destailleur
612e41a8ca Merge branch '19.0' of git@github.com:Dolibarr/dolibarr.git into develop
Conflicts:
	htdocs/core/class/commondocgenerator.class.php
	htdocs/core/lib/functions.lib.php
	htdocs/fourn/commande/card.php
	htdocs/install/mysql/migration/19.0.0-20.0.0.sql
	htdocs/product/stock/replenish.php
	htdocs/takepos/invoice.php
2024-04-18 02:48:52 +02:00
Laurent Destailleur
1ab92ac972 Fix tooltip 2024-04-17 20:57:51 +02:00
Laurent Destailleur
bd3ac2767a Add substitution key __AMOUNT_EXCL_TAX_TEXT__ and
__AMOUNT_EXCL_TAX_TEXTCURRENCY__
2024-04-17 20:35:18 +02:00
John BOTELLA
94cc9c2e28 Fix ergo fail (#29370) 2024-04-17 16:56:39 +01:00
MDW
da9fd874bc Qual: Fix or ignore functions.lib.php phan notices (#29344)
* Fix: LogHandler parent class, implements interface & provides $code

* Fix: functions.lib phan notices

* Fix phan notifications

* Match expected DebugBar signature - rename getRenderer

* Call the correct renderer method for the DebugBar

* Use correct key type to access array

* Ignore notices

* Update functions.lib.php

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-04-14 04:46:33 +02:00
IC-Ilies
5cec87a80e FIX link type extrafield on warehouse not working (#29339) 2024-04-12 17:56:02 +02:00
IC-Ilies
de1d67a6ae FIX #29333 supplier order extrafields of link type displays error (#29334) 2024-04-12 12:12:49 +02:00
Laurent Destailleur
7ca303888d Look and feel v20 2024-04-08 19:20:07 +02:00
Laurent Destailleur
7c5b2dae56 Fix GETPOSTINT 2024-04-05 13:09:32 +02:00
Laurent Destailleur
e36e70ecfe Fix typo formated -> formatted 2024-04-05 10:17:00 +02:00
Laurent Destailleur
bf7109f51c Merge branch '19.0' of git@github.com:Dolibarr/dolibarr.git into develop 2024-04-04 17:47:02 +02:00
Laurent Destailleur
16f4f4a661 FIX Button for disabled modules must not appear. 2024-04-04 17:26:45 +02:00
Laurent Destailleur
40165541d9 Look and feel v20 2024-04-04 01:35:36 +02:00
Laurent Destailleur
a8f22f4215 WIP option MAIN_USE_HTML5_LIMIT_SELECTOR 2024-04-03 18:44:13 +02:00
Laurent Destailleur
2947287e3f Look and feel v20 2024-04-03 16:22:16 +02:00
Laurent Destailleur
fffe74246c Fix all short tables must use the setup for the number of rows 2024-04-03 15:30:10 +02:00
Laurent Destailleur
6004d3ae14 Merge pull request #29204 from mdeweerd/fix/projet_abs
Fix fatal (PHP8.X) type issue with abs, and amend dol_eval return type
2024-04-03 02:06:52 +02:00
Laurent Destailleur
9aa5e43836 Doc 2024-04-02 23:51:45 +02:00
MDW
e64e57716c Fix fatal (PHP8.X) type issue with abs, and amend dol_eval return type
# Fix fatal (PHP8.X) type issue with abs, and amend dol_eval return type

I got the following message:
`Fatal error: Uncaught TypeError: abs(): Argument #1 ($num) must be of type int|float, string given in D:\mdeweerd\workspace\dolibarr\htdocs\projet\list.php on line 233`

I examined the phan report and there was no mention of this because dol_eval was
said to return mixed.

In order to detect such cases, I amended the dol_eval return type to ensure to find
most of the locations where a cast is needed.
2024-04-02 22:52:52 +02:00
Laurent Destailleur
c6cef436dc Fix warning 2024-04-02 20:59:20 +02:00
MDW
146b735269 New: dol_get_object_properties to get real and magic props
# New: dol_get_object_properties to get real and magic props

This method will get an array with real and magic properties
from an object (if $properties is provided).
2024-04-02 11:25:18 +02:00
Laurent Destailleur
e3037794aa Look and feel v20 2024-04-01 15:04:20 +02:00
Laurent Destailleur
8ed9866433 Merge branch '19.0' of git@github.com:Dolibarr/dolibarr.git into develop 2024-03-31 19:26:54 +02:00
Laurent Destailleur
2ed6ae0799 Fix #29031 Fix #29059 2024-03-31 19:15:41 +02:00
Laurent Destailleur
49af1da76c Fix #29031 Fix #29059 2024-03-31 19:14:02 +02:00
MDW
aad8c3d3d2 Improve phpdoc for make_substitutions 2024-03-31 01:03:32 +01:00
MDW
9e892f4367 Improve dol_clone typing by using phpdoc template 2024-03-29 18:26:46 +01:00
Laurent Destailleur
ba7db18389 Merge pull request #29096 from altairis-noe/element_properties
NEW: consider document lines in element properties
2024-03-29 14:37:26 +01:00
Laurent Destailleur
3e8c3edd6d Clean code from _GET 2024-03-28 17:10:22 +01:00
Noé Cendrier
2ab704d630 whoops 2024-03-28 10:36:49 +01:00
Noé Cendrier
bcd99c1365 NEW: consider document lines in element properties 2024-03-28 09:19:46 +01:00
MDW
f41d21407f Fix typing for $links arg in dol_fiche_head() 2024-03-27 10:18:45 +01:00
MDW
ceeaf8b534 Be less restrictive on links index (for phpstan) 2024-03-27 10:18:44 +01:00
MDW
a30bf48e16 Improve phpdoc typing 2024-03-27 10:18:40 +01:00
MDW
d765e847a7 Allow empty array for dol_print_date() return 2024-03-27 10:18:38 +01:00
MDW
cfe66e2f60 Improve typing, init var, suppress notification 2024-03-27 10:18:21 +01:00
MDW
7c660d3392 PHPdoc improvement: dol_print_error_email, price 2024-03-27 10:18:20 +01:00
MDW
974ecf82fe Fix get_class on potential null 2024-03-27 10:18:18 +01:00
MDW
c76baf1e10 Fix typing, inits, ignore some phan's, fix caching reuse 2024-03-27 10:18:16 +01:00
MDW
2cbd57654a Improve PHPdoc for getEntity/setEntity 2024-03-27 10:17:26 +01:00