Commit graph

382 commits

Author SHA1 Message Date
Régis Houssin
950628b540
QUAL add hook printWebsitePageContent (#39576)
* FIX avoid php warnings (#39556)

* Fix help

* Doc

* FIX: Broken feature 'Generate Child Mo' (#39560)

* Fix broken 'Generate Child Mo'

* Fix phan

* QUAL add hook printWebsitePageContent

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
Co-authored-by: Francis Appels <francis.appels@yahoo.com>
2026-08-19 01:01:45 +02:00
MDW
c4d2833421
fix: Replace db->escape with db->sanitize in SQL query construction (#39357)
Replaced all instances of `$this->db->escape($filtermode)` with `$this->db->sanitize($filtermode)` in SQL query construction across multiple classes to ensure proper SQL sanitization and prevent potential SQL injection vulnerabilities.
2026-08-04 18:40:04 +02:00
MDW
1693f8a8a4
Qual: Fix 'SqlInjection' notices (#39216)
* Qual: Fix 'SqlInjection' notices

# Qual: Fix 'SqlInjection' notices

Batch of 25 files with changes to fix 'SqlInjection' Notices

* Qual: Enhance SQL injection prevention in CodingPhpTest.php

Improved the SQL injection prevention mechanism in the CodingPhpTest.php file by adding a check for integer and float casts in the IN clause of SQL queries to avoid false positives.

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2026-07-23 19:06:39 +02:00
Laurent Destailleur
9b3bebcd5e Automated merge from 23.0 to develop 2026-06-19 03:59:57 +02:00
Laurent Destailleur
6145707e56 Automated merge from 22.0 to 23.0 by tool pullmerge.sh 2026-06-19 03:49:56 +02:00
Frédéric FRANCE
48cb717cd3
fix new MO (#38483) 2026-06-10 21:19:06 +02:00
Frédéric FRANCE
855a00ae09
clean code (#38472)
* clean code

* clean code

* clean code

* clean code

* fix

* clean code

* clean code

* clean code

* clean code

* clean code
2026-06-10 19:31:35 +02:00
Laurent Destailleur
bf432da483 Doc example 2026-05-29 12:16:42 +02:00
Laurent Destailleur
64c34d47c5 Merge 2026-05-17 15:01:32 +02:00
Laurent Destailleur
d53600ae85 Doc 2026-05-10 23:54:14 +02:00
Laurent Destailleur
4a6b03221d Fix regression 2026-05-10 23:53:11 +02:00
Laurent Destailleur
0290faca83 Fix regression 2026-05-10 23:51:58 +02:00
Laurent Destailleur
3a9b2bc5ef Merge branch '23.0' of git@github.com:Dolibarr/dolibarr.git into develop 2026-05-10 18:43:28 +02:00
daGrumpf
b2b4fc0ca9
FIX: propagate fk_warehouse from BOM/MO to production lines in createProduction() and processBOM() (#38147)
* FIX: propagate fk_warehouse from BOM line in processBOM()

When creating MO lines from a BOM, the fk_warehouse defined on each
BOM line was not copied to the corresponding MO line. This caused
produceandconsumeall() to fail with a stock movement error when a
warehouse is set on BOM lines but not on the MO itself.

* FIX: propagate fk_warehouse from BOM line in processBOM()

When creating MO lines from a BOM, the fk_warehouse defined on each
BOM line was not copied to the corresponding MO line. This caused
produceandconsumeall() to fail with a stock movement error when a
warehouse is set on BOM lines but not on the MO itself.

* Update mo.class.php

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2026-05-10 13:58:59 +02:00
MDW
ac9a81c800
Qual: Fix PHPStan notices (#37967)
* Qual: Fix PHPStan notices

* Qual: Move type hingint for PHPStan

* Qual: num_open_day() can return float

* Number of opendays can be half a day
2026-04-23 14:57:54 +02:00
MDW
6514e89128
Qual: Update fields array type (#37931)
* Qual: Update fields array type

Propagate the fields array type changes to other classes

* Adjust initialisations of $fields to avoid phpstan notices

* Qual: Fix invalid value for 'index' in $fields

* Fix: notnull in $fields can not be -1

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2026-04-19 16:10:54 +02:00
Laurent Destailleur
3ea601d4c2 Merge branch '21.0' of git@github.com:Dolibarr/dolibarr.git into 22.0 2025-11-20 21:00:12 +01:00
Laurent Destailleur
ae3260eb0b Fix CI 2025-11-20 20:55:10 +01:00
Laurent Destailleur
10c0de4467 Merge branch '21.0' of git@github.com:Dolibarr/dolibarr.git into 22.0 2025-11-20 11:55:18 +01:00
Laurent Destailleur
ae131796d6 Merge branch '21.0' of git@github.com:Dolibarr/dolibarr.git into 21.0 2025-11-20 11:51:51 +01:00
Noé Cendrier
e5480945bc
FIX: Mo::deleteLine() - stock movement correction (#34733)
* FIX: Mo::deleteLine() - stock movement correction should not rely on linked lines

* FIX: do not permit product line to consume removal if product consumption started
2025-11-12 23:59:15 +01:00
Frédéric FRANCE
95e2a7690c
clean phpstan baseline for branch 22 (#35511)
* clean phpstan baseline

* upgrade phpstan version

* fix phan

* fix phan

* fix phan

* fix phan

* fix phan
2025-09-27 03:58:59 +02:00
Frédéric FRANCE
1d56ed09f4
fix doc (#35416)
* fix doc

* Update commonobject.class.php

* Update mo.class.php
2025-09-21 12:12:37 +02:00
ldestailleur
270caf0dcb Debug v22 2025-07-17 19:30:58 +02:00
atm-jonathan
d72d69e55c
NEW add home box mrp (#33549)
* add box Mo

* tests ok

* comparaison dates

* before Wysy

* after wysy

* Update mo.class.php

* Update mo.class.php

* Update conf.class.php

* retour PR

* add parenthesis

* Update mo_list.php

---------

Co-authored-by: x <x@x.x>
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2025-04-02 12:22:59 +02:00
ldestailleur
8a89cc3f04 FIX phpunit 2025-03-24 20:52:13 +01:00
MDW
395fdbf39b
Qual: Fix phan notices (mrp) 2025-02-08 01:49:52 +01:00
MDW
24fa28dfe2
Qual: Fix getKanban phpdoc
# Qual: Fix getKanban phpdoc

Array phpdoc for getKanban corrections.
2025-02-05 01:43:37 +01:00
Laurent Destailleur (aka Eldy)
732f97d73c Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into
develop
2025-02-05 00:40:06 +01:00
Laurent Destailleur
13e6a7b936 Debug v23 2025-12-05 12:55:20 +01:00
Laurent Destailleur
ae4522c152 Fix CI 2025-11-20 20:14:52 +01:00
Laurent Destailleur
13bcab94c5 Debug v23 2025-11-20 19:53:05 +01:00
Laurent Destailleur
0648af5e11 Fix CI 2025-11-20 16:19:06 +01:00
Laurent Destailleur
0bfd72a995 Merge branch '22.0' of git@github.com:Dolibarr/dolibarr.git into develop 2025-11-20 12:00:49 +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
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
MDW
8a84fad171
Qual: Fix misuse of Mo->error (#35841)
# Qual: Fix misuse of Mo->error

Phan identified that ++ was performed on Mo->error which is a string.
This fixes that by using a local $error variable (as in another
function).
2025-10-19 03:35:04 +02:00
Frédéric FRANCE
3d852682ec
clean baseline (#35822)
* clean baseline

* clean baseline

* clean baseline

* clean baseline

* clean baseline

* clean baseline
2025-10-18 11:20:54 +02:00
Frédéric FRANCE
a90c222f73
clean code (#35626)
* clean code

* clean code

* clean code

* clean code

* clean code

* clean code

* clean code
2025-10-04 00:07:24 +02:00
Bradley Jarvis
6c8b4da445
FIX - MRP MO Product to Consume (#35424)
* FIX - MRP MO Product to Consume

Fixes MO Product to Consume when recursive BOM's are used, the product
to consume only includes the BOM line items instead of BOM product

* fix php-stan errors

* fix phan analysis errors

* fix phan analysis errors take 2

---------

Co-authored-by: brad <brad@endurotags.com.au>
2025-09-22 10:18:14 +02:00
Frédéric FRANCE
e7ddb684e0
clean code (#35387)
* clean code

* clean code

* clean code

* clean code

* clean code

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2025-09-21 12:12:09 +02:00
Frédéric FRANCE
d6dce86061
clean code (#35379)
* clean code

* clean code

* clean code

* clean code
2025-09-18 11:08:06 +02:00
Frédéric FRANCE
e81d5378cd
clean code contract class (#35245)
* clean code contract class

* clean code contract class

* clean code contract class

* clean code contract class

* clean code contract class

* clean code contract class

* clean code contract class

* clean code contract class

* clean code contract class

* clean code contract class

* clean code contract class

* clean code contract class

* clean code contract class

* clean code contract class

* clean code contract class

* clean code

* clean code

* clean code

* clean code

* clean code

* fix typo

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix
2025-09-10 11:13:18 +02:00
Frédéric FRANCE
0e1478206a
clean code (#35229)
* clean code

* clean code

* clean code

* clean code

* clean code

* clean code

* clean code

* clean code

* clean code

* clean code

* clean code

* clean code

* clean code

* clean code

* clean code

* clean code

* clean code

* clean code

* clean code

* clean code

* clean code

* clean code

* clean code

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2025-09-08 01:48:52 +02:00
Frédéric FRANCE
a1d7b11324
fix doc (#35196) 2025-09-03 12:54:17 +02:00
ldestailleur
e8b2664921 Debug v22 2025-07-17 19:26:24 +02: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
atm-corentin
515e095e27
NEW add Tags & Categories on MOs (#36816) 2026-01-07 11:23:20 +01:00
Laurent Destailleur (aka Eldy)
b024b95948 Fix typo 2025-01-09 19:35:01 +01:00
Laurent Destailleur (aka Eldy)
56710ce9b7 FIX CVE-2024-55227 and CVE-2024-55228 CSRF when
MAIN_RESTRICTHTML_ONLY_VALID_HTML_TIDY is
on (hidden option not on by default)
2025-01-09 19:35:01 +01:00