Commit graph

151792 commits

Author SHA1 Message Date
Laurent Destailleur
a25d4e0e22 CI 2026-02-08 23:42:45 +01:00
Laurent Destailleur
8eb76e4da8 CI 2026-02-08 23:25:11 +01:00
Laurent Destailleur
900b28b97a Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2026-02-08 23:21:38 +01:00
Laurent Destailleur
9ab084cee2 CI 2026-02-08 23:21:27 +01:00
Lucas Marcouiller
0e27ee5643
New LNE Collect of buisness informations (#37084)
* Working LNE ping

* remove GPDA

* Add of other informations

* remove testing var

* fix Ci

* fix Ci

* fix ci

* fix CI

* Fix Ci

* fix Ci

---------

Co-authored-by: Lucas Marcouiller <lmarcouiller@dolicloud.com>
2026-02-08 23:14:07 +01:00
Laurent Destailleur
7e1fb745b5 NEW Use the js lib into htdocs/public/includes instead of htdocs/includes 2026-02-08 23:11:40 +01:00
Laurent Destailleur
1025c6798a Clean code 2026-02-08 22:38:26 +01:00
Jarvis
9d52c129e4
Update modProduct.class.php (#37087)
Fix: allow import of sell_or_eat_by_mandatory for products

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2026-02-08 22:26:21 +01:00
adamhocini
138c571c75
TakePOS hook “AddAction” jamais exécuté (#35961) (#37113)
@defrance 
Adam Hocini
2026-02-08 22:25:08 +01:00
Laurent Destailleur
67a598d0be Merge branch '23.0' of git@github.com:Dolibarr/dolibarr.git into develop 2026-02-08 21:58:41 +01:00
Laurent Destailleur
a7a7dfb738 Debug v23 2026-02-08 21:34:12 +01:00
Laurent Destailleur
008a22eb17 Fix spellcheck 2026-02-08 21:24:34 +01:00
Laurent Destailleur
1c435e2a67 Clean sql 2026-02-08 21:17:56 +01:00
Laurent Destailleur
102b65364c Avoid ( in sql 2026-02-08 20:57:11 +01:00
Laurent Destailleur
fe3314d07a Merge branch '23.0' of git@github.com:Dolibarr/dolibarr.git into develop 2026-02-08 20:40:42 +01:00
Laurent Destailleur
79bf9a0a4b Add error message 2026-02-08 20:40:25 +01:00
minimexat
b74c6d3ee0
FIX PHP 8.1 undefined array key warnings in ProductCombination multiprices loop (#37142)
When PRODUIT_MULTIPRICES is enabled and a product variant's parent has
multiprices configured, the updateChildPrice() method iterates through
all price levels up to PRODUIT_MULTIPRICES_LIMIT. For price levels that
don't have prices defined, accessing $parent->multiprices[$i] and
related arrays directly causes 'undefined array key' warnings on
PHP 8.1+.

Changes:
- Add isset() check before comparing $parent->multiprices[$i]
- Use isset() ternary for $parent->multiprices_min[$i] (default: 0)
- Use !empty() for $parent->prices_by_qty_list[$i] check
- Use isset() ternary for $parent->multiprices_ttc[$i] (default: 0)
- Use isset() ternary for second $parent->multiprices[$i] (default: 0)

Co-authored-by: f-hoedl <hoefla14@htl-kaindorf.ac.at>
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2026-02-08 20:02:02 +01:00
Eric - CAP-REL
b560a05e68
add fk_parent on group group for permission inheritance (#37152) 2026-02-08 20:01:25 +01:00
Laurent Destailleur
938f8b2d46 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2026-02-08 19:52:49 +01:00
Laurent Destailleur
c386f94fab Debug v23 - Filter on action type ko 2026-02-08 19:33:09 +01:00
Laurent Destailleur
1173164d7e Debug v23 - Filter on action type ko 2026-02-08 19:30:17 +01:00
Laurent Destailleur
8c5fe25137 Merge branch '23.0' of git@github.com:Dolibarr/dolibarr.git into develop 2026-02-08 19:04:03 +01:00
Laurent Destailleur
3b6c448787 Debug v23 - Min price was wrong in multicurrency mode 2026-02-08 18:52:24 +01:00
Laurent Destailleur
48254ef6d0 Comment 2026-02-08 17:51:20 +01:00
Laurent Destailleur
f4dc5dfee9 Fix CI 2026-02-08 17:51:08 +01:00
Laurent Destailleur
ba28d16da4 Sec: Add param $dolibarr_website_allow_custom_php to block by default
any PHP content in website module.
2026-02-08 17:41:42 +01:00
David Beniamine
de71085394
Ensure that if $object->members is not loaded either we do not send m… (#37126)
* Ensure that if $object->members is not loaded either we do not send members to LDAP or we explicitly loads them before according to LDAP configuration

* Fix typo
2026-02-08 15:39:27 +01:00
Laurent Destailleur
8feb5275ba Debug v23 2026-02-08 15:38:19 +01:00
MDW
1166dd305b
Qual: Update comments from French to English (#37097)
* Qual: Update comments from French to English

# Qual: Update comments from French to English

* Qual: Fix missing initialisations

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2026-02-08 15:29:53 +01:00
Laurent Destailleur
2b1d0e1012 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2026-02-08 15:28:31 +01:00
Laurent Destailleur
8a8ba06698 Fix CI 2026-02-08 15:28:19 +01:00
minimexat
f70eaae6f5
FIX #34342 PHP 8.1 undefined array key warnings in Product::getSellPrice() multiprices (#37144)
When using multiprices (PRODUIT_MULTIPRICES or
PRODUIT_CUSTOMER_PRICES_AND_MULTIPRICES), getSellPrice() accesses
$this->multiprices[$level], multiprices_ttc, multiprices_min,
multiprices_min_ttc, and multiprices_base_type arrays using the
buyer's price_level as key without checking if the key exists.

This causes 'undefined array key' warnings on PHP 8.1+ when a
third party has a price_level set but the product doesn't have
prices defined for that specific level.

Similarly, prices_by_qty array accesses for PRODUIT_CUSTOMER_PRICES_BY_QTY
and PRODUIT_CUSTOMER_PRICES_BY_QTY_MULTIPRICES modes could trigger
warnings when the array index doesn't exist.

Changes:
- Add isset() checks with safe defaults for all multiprices array
  accesses (0 for prices, 'HT' for price_base_type)
- Replace direct prices_by_qty access with !empty() checks

Co-authored-by: f-hoedl <hoefla14@htl-kaindorf.ac.at>
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2026-02-08 15:08:58 +01:00
Laurent Destailleur
8d96ed3a03 Debug v23 2026-02-08 15:02:48 +01:00
Laurent Destailleur
28a7c69f11 Merge branch '23.0' of git@github.com:Dolibarr/dolibarr.git into develop 2026-02-08 14:56:01 +01:00
Laurent Destailleur
4a7c6c6700 Merge branch '22.0' of git@github.com:Dolibarr/dolibarr.git into 23.0 2026-02-08 14:55:13 +01:00
Laurent Destailleur
9ec77dada2 Merge branch '22.0' of git@github.com:Dolibarr/dolibarr.git into 22.0 2026-02-08 14:54:15 +01:00
Laurent Destailleur
afc3879d84 Merge branch '21.0' of git@github.com:Dolibarr/dolibarr.git into 22.0 2026-02-08 14:53:59 +01:00
Laurent Destailleur
d15f196249 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2026-02-08 14:51:29 +01:00
Laurent Destailleur
f6ec5b44fe CI 2026-02-08 14:51:11 +01:00
Florian Hödl
4660d0eec9
FIX #37118 Add missing require_once for CMailFile and functions2 in advtargetemailing (#37136)
Co-authored-by: Florian Hödl <florian@hoedl.co>
2026-02-08 14:47:11 +01:00
minimexat
7496ec701c
FIX #36923 Fix undefined array key warnings in opensurvey create_survey.php (#37140)
The session variable initialization logic was inverted: it set variables
to null only when they already existed, instead of initializing them
when they were missing. This caused 'undefined array key' warnings on
PHP 8.1+ when accessing the poll creation form for the first time.

Changes:
- Inverted isset() condition to !isset() to properly initialize missing
  session variables
- Initialize to empty string instead of null
- Added missing session variables (allow_comments, allow_spy, champdatefin)
  to the initialization array
- Added dol_escape_htmltag() for title output (XSS hardening)

Co-authored-by: f-hoedl <hoefla14@htl-kaindorf.ac.at>
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2026-02-08 14:46:02 +01:00
Vanyo
534995dd6c Initialize arrayforbutaction before hook (#37149) 2026-02-08 14:44:29 +01:00
Vanyo
1cd73239fc
Initialize arrayforbutaction before hook (#37149) 2026-02-08 14:44:15 +01:00
Laurent Destailleur
aa36309755 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2026-02-08 14:40:13 +01:00
Laurent Destailleur
c939f56b56 NEW Add method formatLogObject to allow logs in 1 line #37135 2026-02-08 14:39:46 +01:00
Alexandre SPANGARO
7bb57721bb
FIX Invoice - Don't show discount on credit note type (#37145) 2026-02-08 14:29:25 +01:00
Mathieu G.
3f412cf745
fix avoids undefined array key (#37103) 2026-02-08 14:28:09 +01:00
Laurent Destailleur
ce50e32a71 Fix regression 2026-02-08 14:25:27 +01:00
Laurent Destailleur
d0c5d523a3 FIX Show total on multicurrency only if currency are the same on all
lines
2026-02-08 13:59:19 +01:00
Laurent Destailleur
5e960ae089 FIX Show total on multicurrency only if currency are the same on all
lines
2026-02-08 13:57:11 +01:00