2
0
forked from Wavyzz/dolibarr
Commit Graph

36140 Commits

Author SHA1 Message Date
Laurent Destailleur
c2e4451852 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2024-06-15 16:40:22 +02:00
Laurent Destailleur
060816e3dd Clean code 2024-06-15 16:30:28 +02:00
Frédéric FRANCE
cc48228a39 fix phpstan (#30015) 2024-06-15 16:05:41 +02:00
Frédéric FRANCE
567e6e7c9c fix phpstan dead catch in generic odt societe (#30017)
* fix phpstan dead catch

* fix phpstan dead catch
2024-06-15 16:03:10 +02:00
Frédéric FRANCE
a845409e4f fix phpstan (#30018) 2024-06-15 16:02:47 +02:00
Laurent Destailleur
99f0888ed0 Fix #30021 2024-06-15 15:52:21 +02:00
Philippe Grand
a79cdca658 FIX : Warning: Undefined property: PropaleLigne::$situation_percent in /home/httpd/vhosts/aflac.fr/domains/dol190.aflac.fr/httpdocs/core/lib/pdf.lib.php on line 2442 (#30033)
* fix : Warning: Undefined variable  in /home/httpd/vhosts/aflac.fr/domains/dol190.aflac.fr/httpdocs/compta/bank/various_payment/list.php on line 370

* backward

* update

* fix : Warning: Undefined property: PropaleLigne:: in /home/httpd/vhosts/aflac.fr/domains/dol190.aflac.fr/httpdocs/core/lib/pdf.lib.php on line 2442

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-06-15 15:06:58 +02:00
Laurent Destailleur
e4db878042 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2024-06-15 14:53:53 +02:00
Laurent Destailleur
89b56120eb Fix error when import module not compatible with PHP 2024-06-15 14:53:36 +02:00
Laurent Destailleur
d376a2a406 Fix look and feel v19 2024-06-14 19:39:26 +02:00
boudet jean pascal
014aa9567c add _multiselect on param for checkbox (#29855)
* ass _multiselect  on param for checkbox

* add is_array

* pre-commit

---------

Co-authored-by: jpb <jean-pascal.boudet@atm-consulting>
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-06-13 15:17:00 +02:00
Lucas Marcouiller
0a1eb954d7 Fix warnings and deprecated (#29999)
Co-authored-by: Hystepik <lmarcouiller@nltechno.com>
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-06-13 08:51:22 +02:00
Frédéric FRANCE
17401c2bff fix phpstan ref_customer is not nullable (#30002) 2024-06-13 08:12:24 +02:00
Frédéric FRANCE
facb1930a7 fix phpstan Property Product::$oldcopy in empty() is not falsy (#30003)
* fix phpstan Property Product::$oldcopy in empty() is not falsy

* add token

* doc

* fix phpstan Property Product::$oldcopy in empty() is not falsy

* fix phpstan Property Product::$oldcopy in empty() is not falsy

* fix phpstan
2024-06-13 08:11:11 +02:00
Frédéric FRANCE
a6ec8a0f22 fix phpstan dead catch (#30007) 2024-06-13 08:07:16 +02:00
Frédéric FRANCE
f4d278b3db fix odt shipping (#29991)
* fix odt shipping

* fix odt shipping

* fix odt shipping
2024-06-12 16:44:15 +02:00
Laurent Destailleur
6717ce209d Fix menu link 2024-06-12 15:44:54 +02:00
Laurent Destailleur
ec42ad7804 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2024-06-12 00:46:02 +02:00
Laurent Destailleur
da577e8a24 Debug look and feel v20 2024-06-12 00:45:23 +02:00
atm-corentin
1766311338 FIX : move porpale ref pdf cornas (#29989)
Co-authored-by: x <x@x.x>
2024-06-11 20:03:10 +02:00
Frédéric FRANCE
c9233d417b fix phpstan dead catch (#29986) 2024-06-11 20:02:06 +02:00
Frédéric FRANCE
c9f9e44454 add phpdoc (#29982)
* add phpdoc

* token

* token
2024-06-11 01:06:52 +02:00
Frédéric FRANCE
0d33365152 ignore phpstan error (#29974)
* ignore phpstan error

* Update dolgraph.class.php
2024-06-10 20:49:58 +02:00
Frédéric FRANCE
1711c1db45 ignore phpstan error (#29973) 2024-06-10 20:49:43 +02:00
Frédéric FRANCE
5aff26ad10 exclude function in dol_eval (#29977) 2024-06-10 20:48:08 +02:00
Frédéric FRANCE
499f012081 fix phpstan dead catch (#29976) 2024-06-10 20:47:47 +02:00
Frédéric FRANCE
4061570acd fix csrf level 3 (#29975)
* fix csrf level 3

* Update init_menu_auguria.sql
2024-06-10 20:47:27 +02:00
Laurent Destailleur
77fe3bc02d Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2024-06-10 16:08:59 +02:00
Mathieu Moulin
abcb1dad4b Define CommonObject relation in CommonObjectLine classes (#29956) 2024-06-10 16:08:39 +02:00
Vincent de Grandpré
288e08a2e3 FIX#29958 - Evaluation of the enablement condition of an extrafield to add it to list of fields (#29960)
* evaluation the enablement condition of an extrafield to add it in the extrafield list array generation

* typo
2024-06-10 16:02:50 +02:00
Laurent Destailleur
1d07e2a36b css 2024-06-10 15:01:45 +02:00
boudet jean pascal
0fa6cd7042 fix extrafield input with the type int mus show 0 value if exist (#29967)
* fix extrafield input with the type int mus show 0 value if exist

* pre-commit

* pre-commit

---------

Co-authored-by: jpb <jean-pascal.boudet@atm-consulting>
2024-06-10 14:30:36 +02:00
Frédéric FRANCE
7ea296ff75 Fix Dead catch Exception phpstan (#29959)
* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

fix phpstan

fix phpstan

* fix phpstan
2024-06-10 14:26:41 +02:00
Laurent Destailleur
7a2b4938c9 FIX #29963 2024-06-10 14:23:07 +02:00
Laurent Destailleur
469137473d Fix use better action code 2024-06-10 14:15:36 +02:00
Frédéric FRANCE
ad93a54402 fix phpstan (#29961)
Expression in empty() is not falsy.
2024-06-10 14:07:28 +02:00
Florian Mortgat
7163299f04 NEW convenience methods for getting / setting the value of an extrafield (#29856)
* NEW convenience methods for getting / setting the value of an extrafield on an object

* Update htdocs/core/class/commonobject.class.php

[code formatting] removing extra space
2024-06-09 15:34:04 +02:00
Lucas Marcouiller
5a4d80a8e6 Fix display of non html messages in ticket/messaging.php (#29896)
* Fix display of non html messages in ticket/messaging.php

* Fix pr

* fix remaining nl2br

* add maildate

* fix conflict

---------

Co-authored-by: Hystepik <lmarcouiller@nltechno.com>
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-06-09 15:23:39 +02:00
Frédéric FRANCE
b76f2acedd fix phpstan (#29948) 2024-06-09 14:58:07 +02:00
Frédéric FRANCE
acd8fdc24e fix phpstan level 4 (#29954)
* fix phpstan level 4

* fix phpstan level 4
2024-06-09 13:26:45 +02:00
Eric
000efd5221 Fix #29640: (#29939)
* FIX REPLENISH MANY FOURN WHEN ORDER ALREADY CREATE (#29710)

* fix restrictedArea on selectobject (#29882)

* Fix travis

* Fix : expense report reapproval email, wrong date format + missing parameter (#29874)

* delete_linked_contact is < 0 in case of error

---------

Co-authored-by: IC-Mathieu <95343351+IC-Mathieu@users.noreply.github.com>
Co-authored-by: Rémi Champlon <85104766+Kazimir42@users.noreply.github.com>
Co-authored-by: Laurent Destailleur <eldy@users.sourceforge.net>
Co-authored-by: Maxime Kohlhaas <maxime@atm-consulting.fr>
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-06-09 01:11:03 +02:00
Eric
3421352e7c prefix and suffix core cleanup (#29938) 2024-06-09 00:50:40 +02:00
Laurent Destailleur
b40bf1b768 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2024-06-08 19:38:31 +02:00
Laurent Destailleur
09ee64c154 FIX #29915 Better fix to show full path of category in multiselect mode. 2024-06-08 19:36:15 +02:00
Aloïs Micard
0cfd16d8db Allow tweaking of the index that MySQL use when searching products (#29934)
* Allow tweaking of the index that MySQL use when searching products

Sometimes when working with large dataset with many entities the MySQL engine does not pick-up the right index.
This is especially true when doing a search over the reference because the LIKE '%%' prevent the uk_product_label from being chosen.

This PR aims to improve this situation by doing the following :

- Adding a simple index on entity column.
- Adding an hidden constant to force the index being used when searching products.

Performances over a 8M products dataset shows a reduction of 2/3 execution time.

* Add missing global $conf

* Fix wrong usage of getDolGlobalString()

* Finalise fix

* Add more indexes

* Rework indexes
2024-06-08 19:35:28 +02:00
Laurent Destailleur
3c961263cb Look and feel v20 2024-06-08 19:34:54 +02:00
Frédéric FRANCE
1ff0e8a821 fix an old error (#29850)
* fix an old error

* fix OdfException is never thrown in the try block

* fix OdfException is never thrown in the try block

* fix Undefined array key "name"

* fix missing translation

* fix missing translation

* fix Undefined variable $lineid

* fix warnings

* fix upload dir

* fix phpcs
2024-06-08 16:59:40 +02:00
Frédéric FRANCE
00161fba9a fix phpstan Expression "'@phan-var string[] $prim%.... (#29928) 2024-06-08 14:53:46 +02:00
Lucas Marcouiller
d63687da6d Fix dol_escape_htmltag to prevent bad strip of char (#29931)
Co-authored-by: Hystepik <lmarcouiller@nltechno.com>
2024-06-08 14:51:32 +02:00
Charlène Benke
c8c220a394 FIX : create mrp table if enabled (#29921)
* create mrp table if enabled

* Update modMrp.class.php
2024-06-08 12:00:58 +02:00