2
0
forked from Wavyzz/dolibarr
Commit Graph

4551 Commits

Author SHA1 Message Date
Laurent Destailleur
7715513ac9 Some API HTTP return code were moved from 401 to 403 to better follow
REST specification.
2024-04-02 14:47:49 +02:00
Laurent Destailleur
51f862ad28 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into
develop
2024-04-02 13:21:00 +02:00
Laurent Destailleur
990216b13f NEW Api parameters are sanitized by the WAF, same code than GET/POST 2024-04-02 13:07:13 +02:00
Jon Bendtsen
d12f90b4d3 will allow updating 1 orders single Complementary Attribute without specifying complementary attributes that we don't want to change. Similar to # 29115 but just for orders 2024-04-01 10:08:02 +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
Regis Houssin
85a08a9288 FIX sometimes a string type instead integer is return, why ? 2024-03-31 19:17:58 +02:00
sonikf
bf00047cc4 fix #29142 2024-03-31 11:54:38 +03:00
Charlène Benke
9fae490b59 Move extrafield and hook after shippable fields 2024-03-30 18:37:44 +01:00
Frédéric France
7a7b1953ed fix phpstan 2024-03-28 20:34:33 +01:00
Laurent Destailleur
3e8c3edd6d Clean code from _GET 2024-03-28 17:10:22 +01:00
Laurent Destailleur
7535a884ac Merge pull request #29069 from mdeweerd/fix/price
Fix arguments to price()
2024-03-28 13:07:25 +01:00
Zephyriony
b9c50507ad Fix Order bug
Fixed the bug that caused the update() function to delete the contents of the fk_user_author field and leave the fk_user_modif field empty.
2024-03-28 13:00:59 +01:00
Laurent Destailleur
0b4a7cd1a4 Merge pull request #29088 from zephyriony/patch-7
Fix Order bug
2024-03-28 13:00:26 +01:00
Laurent Destailleur
415e99606d Merge pull request #29091 from mdeweerd/fix/facturefournisseur/card
Fix card FactureFournisseur
2024-03-28 12:55:24 +01:00
MDW
975243f1b5 Fix: Ensure DiscountAbsolute->fk_soc deprecation is possible
# Fix: Ensure DiscountAbsolute->fk_soc deprecation is possible

Assign socid whenever fk_soc is assigned so that socid can be accessed
instead of fk_soc.
2024-03-27 18:07:51 +01:00
Zephyriony
339f9604f6 Fix Order bug
Fixed the bug that caused the update() function to delete the contents of the fk_user_author field and leave the fk_user_modif field empty.
2024-03-27 14:59:42 +01:00
Laurent Destailleur
0465aeb412 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into
develop
2024-03-27 11:39:26 +01:00
Laurent Destailleur
dc43a7e87b Merge branch '18.0' of git@github.com:Dolibarr/dolibarr.git into 19.0 2024-03-27 11:22:38 +01:00
MDW
dc47f6390c Fix arguments to price() 2024-03-27 10:21:24 +01:00
MDW
518c739b8e Fix arguments to price() 2024-03-27 10:21:23 +01:00
Laurent Destailleur
8341476b49 Look and feel v20 2024-03-24 23:08:23 +01:00
MDW
6f0b454779 Fix PhanNonClassMethodCall with extra test 2024-03-24 15:40:22 +01:00
MDW
c822795cc1 Fix PhanTypeInvalid{Left,Right}OperandOfNumericOp mostly by typing, casting, idate 2024-03-23 02:06:24 +01:00
MDW
7762e3eb69 Fix PhanTypeInvalid{Left,Right}OperandOfNumericOp mostly by typing, casting, idate 2024-03-23 02:06:23 +01:00
Delthair
5f1796b39a FIX #29029 Impossible to delete an order line
Impossible to delete a line because the code lead to add an error if the request is valid therefore leading to a rollback of the request
2024-03-22 18:49:12 +01:00
Laurent Destailleur
51a3641105 Merge branch '19.0' of git@github.com:Dolibarr/dolibarr.git into develop
Conflicts:
	htdocs/bom/tpl/objectline_create.tpl.php
	htdocs/compta/bank/releve.php
	htdocs/core/class/html.formsetup.class.php
	htdocs/takepos/freezone.php
2024-03-22 02:35:37 +01:00
Laurent Destailleur
7b0177a84d Move to getDolGlobalString 2024-03-22 00:37:56 +01:00
MDW
170a929656 Fix $mybool |=... which is binary op, not boolean op
# Fix $mybool |=... which is binary op, not boolean op

This fixes PhanTypeInvalidLeftOperandOfBitwiseOp.
Replace $var |= ... with $var = ... || $var .
Add cast before ... when needed (@include does not always return bool).
|= always evaluates expression, there for || $var, not $var ||
2024-03-21 13:45:04 +01:00
MDW
aeefca7e7e Fix $arrayfields typing lost by dol_sort_array() by forcing the type 2024-03-20 23:29:48 +01:00
MDW
ff3c33206c Fix arg type to preg_match() and trim with cast 2024-03-20 04:08:30 +01:00
MDW
c9e436df13 Fix arg type to preg_replace() with cast 2024-03-20 04:08:29 +01:00
Laurent Destailleur
10e3627c59 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2024-03-19 18:14:07 +01:00
Laurent Destailleur
e9e2105508 Merge branch '19.0' of git@github.com:Dolibarr/dolibarr.git into develop
Conflicts:
	htdocs/accountancy/class/bookkeeping.class.php
	htdocs/core/class/CMailFile.class.php
	htdocs/core/lib/functions.lib.php
	htdocs/ticket/class/ticket.class.php
2024-03-19 18:12:13 +01:00
Laurent Destailleur
43a3f449c4 Merge branch '18.0' of git@github.com:Dolibarr/dolibarr.git into 19.0 2024-03-19 17:07:51 +01:00
Kamel Khelifa
426e18ea33 Correction syntax 2024-03-19 14:31:15 +01:00
Kamel Khelifa
07c84df3dc FIX: Move the trigger for delete order line before the SQL request 2024-03-19 14:23:02 +01:00
Christophe Battarel
feaa2e5ba3 fix conflict 2024-03-19 10:55:59 +01:00
MDW
fd9d48faac Fix phpstan CommonObject->fields - notnull is optional field 2024-03-19 00:32:00 +01:00
Laurent Destailleur
313f3f592a Close #27037 2024-03-17 21:47:18 +01:00
Laurent Destailleur
de58435ef1 FIX: if we stop for security purpose, we must exit a non zero value. 2024-03-16 23:08:15 +01:00
MDW
13ab939691 Fix deprecated function calls 2024-03-16 13:27:51 +01:00
Laurent Destailleur
e15f243e95 Clean code - Remove a deprecated tag that should not exists. 2024-03-16 11:51:32 +01:00
Laurent Destailleur
e994d6650f Fix regression in GETPOST limit 2024-03-16 11:41:00 +01:00
Laurent Destailleur
79aa9fb1f1 Code simpler 2024-03-15 20:29:21 +01:00
MDW
23785393a3 Add csslist to json keys 2024-03-15 03:55:52 +01:00
MDW
5263bc81dc Fix PhanTypeMismatchPropertyDefault 2024-03-15 03:44:44 +01:00
Frédéric FRANCE
23b0faeb44 Merge branch 'develop' into skiljob 2024-03-14 11:04:11 +01:00
Laurent Destailleur
c867bc2706 Merge branch '19.0' of git@github.com:Dolibarr/dolibarr.git into develop 2024-03-13 22:36:45 +01:00
Laurent Destailleur
8bfc0779c4 Merge branch '19.0' of git@github.com:Dolibarr/dolibarr.git into 19.0 2024-03-13 22:20:08 +01:00
Laurent Destailleur
a0b26ae7cd FIX Amount of localtaxes in foreign currency was wrong on screen and PDF 2024-03-13 22:04:44 +01:00