Commit Graph

12618 Commits

Author SHA1 Message Date
boudet jean pascal
3076b6ad40 fix 500 error count array (#29337)
* fix error 500  on array count

* fix pre-commit error

* Update html.form.class.php

---------

Co-authored-by: jpb <jean-pascal.boudet@atm-consulting>
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-04-12 14:44:54 +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
132595f10f CSS customreport 2024-04-10 01:38:36 +02:00
Laurent Destailleur
7ca303888d Look and feel v20 2024-04-08 19:20:07 +02:00
Zephyriony
6f524405af QUAL Rename column fk_origin_line on shipment lines into fk_elementdet to match a generic use. (#28989)
* Update expedition.class.php 

Adapting the query and code to the new table format

* Update llx_expeditiondet.sql

* Update expedition.class.php

* Update expedition.class.php

* Update expedition.class.php

* Update expedition.class.php

* Update expedition.class.php

* Update expedition.class.php

* Update expedition.class.php

* Update expedition.class.php

* Update expedition.class.php

* Update llx_expeditiondet.sql

* Update expedition.class.php

* rename fk_origin_line to fk_elementdet

* rename fk_origin_line to fk_elementdet

* rename fk_origin_line to fk_elementdet

* rename fk_origin_line to fk_elementdet

* rename fk_origin_line to fk_elementdet

* rename fk_origin_line to fk_elementdet

* rename fk_origin_line to fk_elementdet

* rename fk_origin_line to fk_elementdet

* rename fk_origin_line to fk_elementdet

* rename fk_origin_line to fk_elementdet

* Update expedition.class.php

* Update expedition.class.php

* rename fk_origin_line to fk_elementdet

* rename fk_origin_line to fk_elementdet

* Update 19.0.0-20.0.0.sql

---------

Co-authored-by: sonikf <93765174+sonikf@users.noreply.github.com>
2024-04-08 12:44:49 +02:00
Charlène Benke
e4657c6b03 MAIN_SUPPORT_SHARED_CONTACT_BETWEEN_THIRDPARTIES error (#29010)
* MAIN_SUPPORT_SHARED_CONTACT_BETWEEN_THIRDPARTIES error

if we enable MAIN_SUPPORT_SHARED_CONTACT_BETWEEN_THIRDPARTIES we disable the native contact tabs

* Update companies.lang

* Update companies.lang

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-04-08 12:13:38 +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
389857fdf1 FIX missing trans on VolumeUnitcm3 2024-04-04 13:16:32 +02:00
Laurent Destailleur
ad79acf63c QUAL removed duplicate language file 2024-04-04 11:00:35 +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
5acdcac75d Debug v20 2024-04-03 12:25:06 +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
Laurent Destailleur
47297d07fd Merge pull request #29135 from mikko80/patch-1
NEW Invoice PDF If bank account is empty, not print "Bank" and "Account"
2024-03-31 14:02:20 +02:00
Laurent Destailleur
21bedea607 Merge pull request #29143 from mdeweerd/fix/phpstan4
Fix Multiple fixes inspired by phpstan level 5 and phan
2024-03-31 13:56:24 +02:00
MDW
a0ce1514c1 Improve phpdoc typing 2024-03-31 03:02:03 +02:00
MDW
3a84e10b09 Should compare to constant IMAGETYPE_PNG, not to string 2024-03-31 01:08:36 +01:00
MDW
aad8c3d3d2 Improve phpdoc for make_substitutions 2024-03-31 01:03:32 +01:00
MDW
13043be5c5 Improve phpdoc typing 2024-03-31 01:03:31 +01:00
Laurent Destailleur
5c72441cc2 Merge pull request #29133 from mdeweerd/fix/related/fournisseur.facture
Fix phan notices related to fournisseur.facture.class.php
2024-03-30 23:46:01 +01:00
Laurent Destailleur
56105667e7 Merge pull request #29128 from mdeweerd/fix/stan
Fix PHPdoc typing (to fix php stan notices)
2024-03-30 20:01:48 +01:00
Laurent Destailleur
bf5dff67ee Merge pull request #29139 from mdeweerd/fix/related/html.form
Fix phan notices related to Html Form
2024-03-30 19:53:25 +01:00
MDW
94796d90b8 Improve phpdoc typing ajax_autocompleter 2024-03-30 18:03:10 +01:00
Mikko Virtanen
fd53a90153 Update pdf.lib.php 2024-03-30 13:46:22 +02:00
Mikko Virtanen
0f661175be Update pdf.lib.php
If bank account is empty, not print "Bank" and "Account"
2024-03-30 13:29:40 +02:00
Laurent Destailleur
3d28163c2e Fix create dir if dir does not exist 2024-03-30 03:33:36 +01:00
MDW
9afe7dba59 Fix phan notices related to fournisseur.facture.class.php
# Fix phan notices related to fournisseur.facture.class.php

This fixes deprecations and phpdoc.
2024-03-29 23:48:40 +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
Laurent Destailleur
7ba40287ca Merge pull request #29009 from lamrani002/fixInDictMB
Fix condition in  createDictionary for modulebuilder
2024-03-28 15:12:07 +01:00
Laurent Destailleur
787b1a1c83 Merge branch 'develop' into fix/filebyfile 2024-03-28 14:23:54 +01:00
Laurent Destailleur
a7e33e6573 Merge pull request #29047 from mdeweerd/fix/PhanPluginUnknownObjectMethodCall1
Fixes for PhanPluginUnknownObjectMethodCall
2024-03-28 14:20:57 +01:00
Laurent Destailleur
54501bccc3 Merge pull request #29066 from mdeweerd/fix/dol_get_fiche_head
Fix arguments to dol_get_fiche_head and dol_get_fiche_end
2024-03-28 14:16:45 +01:00
Laurent Destailleur
1d125bf9fa Merge pull request #29065 from mdeweerd/fix/dol_print_error
Fix arguments to dol_print_error
2024-03-28 13:35:44 +01:00
Laurent Destailleur
6c15816e5c Merge pull request #29093 from mdeweerd/fix/facture/card
Fix phan noticies for compta/facture/card.php
2024-03-28 12:06:32 +01:00
Laurent Destailleur
a2ec7400eb Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into
develop
2024-03-28 10:55:44 +01:00