William Mead
f472e1a564
Fixed extrafield type check ( #38769 )
2026-06-14 01:13:22 +02:00
Frédéric FRANCE
3c8eef840a
fix CI ( #38490 )
2026-06-09 19:42:58 +02:00
Laurent Destailleur
b4b1a40751
Clean API
2026-05-29 12:36:54 +02:00
Laurent Destailleur
bf432da483
Doc example
2026-05-29 12:16:42 +02:00
Laurent Destailleur
52638e8c43
Fix protection against bad use of ->$field in API
2026-05-29 11:56:44 +02:00
Laurent Destailleur
aef08a38cd
Fix protection to avoid bad use of ->$fields in API
2026-05-29 11:52:46 +02:00
Laurent Destailleur
85384fb523
Fix sanitize fields in API put and post for extrafields
2026-05-09 01:16:35 +02:00
Laurent Destailleur
1a1dcc176c
Add a protection for int var fk_...
2026-04-08 21:39:41 +02:00
Laurent Destailleur
1124439043
FIX #GHSA-qjj8-wpvx-p54j - test on hierarchy not done on some api
2026-03-26 16:54:45 +01:00
Laurent Destailleur
8abeb47da1
Merge branch '22.0' of git@github.com:Dolibarr/dolibarr.git into develop
2025-12-22 16:06:05 +01:00
Laurent Destailleur
3a4cf15857
Debug v23 no propagation of warnings
2025-12-21 13:32:32 +01:00
Laurent Destailleur
da39a6a394
Merge branch '21.0' of git@github.com:Dolibarr/dolibarr.git into 22.0
2025-12-16 01:33:36 +01:00
Laurent Destailleur
7ae333c51e
Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into 21.0
2025-12-15 16:15:45 +01:00
Laurent Destailleur
3690babb73
Merge branch '19.0' of git@github.com:Dolibarr/dolibarr.git into 20.0
2025-12-15 15:57:01 +01:00
Laurent Destailleur
e1b5e024f5
Merge
2025-12-15 15:56:34 +01:00
Laurent Destailleur
a0be2c8890
Merge branch '17.0' of git@github.com:Dolibarr/dolibarr.git into 18.0
2025-12-15 15:54:00 +01:00
Laurent Destailleur
77d7ec8a2b
Merge branch '16.0' of git@github.com:/Dolibarr/dolibarr.git into 17.0
2025-12-15 15:53:38 +01:00
Laurent Destailleur
cc37c778dc
Merge branch '15.0' of git@github.com:Dolibarr/dolibarr.git into 16.0
2025-12-15 15:53:00 +01:00
Laurent Destailleur
722c31d182
Merge branch '14.0' of git@github.com:Dolibarr/dolibarr.git into 15.0
2025-12-15 15:52:34 +01:00
VESSILLER
c2ae7d2da1
FIX create API temp directory in Dolibarr API constructor
2025-11-13 14:01:34 +01:00
Frédéric FRANCE
d07e8c03a0
avoid changing object after call ( #36159 )
...
* avoid changing object after call
* avoid changing object after call
* avoid changing object after call
* avoid changing object after call
* avoid changing object after call
* avoid changing object after call
* avoid changing object after call
* clean code
* clean code
* clean code
* fix
* fix
* fix
* fix
* fix
* fix
* fix
* fix
* fix
* clean code
* clean
* clean
---------
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2025-11-12 09:44:39 +01:00
Laurent Destailleur
6145bcc449
FIX Error 500 on api if cache is on and directory does not exists
2025-10-31 16:59:09 +01:00
Laurent Destailleur
5a61116497
Debug v23
2025-10-31 16:55:48 +01:00
Laurent Destailleur
6e14377ba4
FIX avoid error 500 on api when cache dir does not exists
2025-10-31 16:44:29 +01:00
Laurent Destailleur
88aeae24da
Add more logs
2025-10-31 16:22:53 +01:00
Laurent Destailleur
4c84650e39
NEW Add API for Holidays/Leaves
2025-10-29 18:58:06 +01:00
Jon Bendtsen
982e0ed64e
NEW: API endpoint for getting products in a warehouse ( #35918 )
...
* mostly updating fetch with all the fields and adding 2 missing variables
* adding throw RestException numbers, @url and a test for if you try with id=0
* Adding hurl file that do some testing og warehouses API endpoints
* Class for API prevented ever seeing model_pdf in API json
* Check for auth before doing other tests on the request
* New function list Products in warehouse. Work done by defrance, revived by JonB
* API PUT/update now allows for more database fields
* hurl tests for the new list products in warehouse endpoint
* also rejecting warehouse_id in a post
* pre-commit fix api warehouses
* copy paste error from api_usergroup
* Just return the lines, no cleaning needed
* PHAN fixes
* trying to fix PHAN error
* fix api update so it returns error when error, and fix object->update with import_key
* this->db not global db
* Advice from hregis
* Typo this d not dB
* Array of strings
* Changed listProducts in warehouse, uses api_product->get with variables from that
* hurl tests for API warehouses, and the new function get products in warehouse
* some STAN fixes
* more phan fixes
* changes revealed necessary by hurl testing
---------
Co-authored-by: Jon Bendtsen <xcodeauthor@jonb.dk>
2025-10-28 10:23:06 +01:00
Frédéric FRANCE
e65b5575b9
clean code ( #35462 )
...
* clean code
* clean code
* clean code
* clean code
* clean code
2025-09-24 10:37:26 +02:00
ldestailleur
49051ff165
Removed deprecated property ->projet (replace with ->project)
2025-09-21 15:08:56 +02:00
ldestailleur
36b00c5951
Merge branch '21.0' of git@github.com:Dolibarr/dolibarr.git into develop
2025-06-02 14:59:18 +02:00
ldestailleur
14c2db425d
Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into 21.0
2025-06-02 14:53:12 +02:00
ldestailleur
ca11136092
Merge branch '19.0' of git@github.com:Dolibarr/dolibarr.git into 20.0
2025-06-02 14:37:54 +02:00
ldestailleur
11d357b79e
Merge branch '18.0' of git@github.com:Dolibarr/dolibarr.git into 19.0
2025-06-02 14:31:05 +02:00
William Mead
4fb79ba8a1
FIX API expense report line comments (v18+) ( #34297 )
...
* Fixed API expense report line comments
* Added contributor details
2025-05-27 15:57:48 +02:00
ldestailleur
1325b249b0
Clean code to fix some phan warnings
2025-04-01 09:36:36 +02:00
MDW
f625f8de60
Qual: Fix api phan notices
2025-03-05 13:22:08 +01:00
Frédéric France
86e1625793
fix phpstan
2025-01-06 18:27:30 +01:00
Laurent Destailleur
c2a3a93342
Debug v21 - renameto avoid future conflit
2024-11-24 14:58:40 +01:00
MDW
099dbd9c1e
Qual: Fix notices for htdocs/admin/* ( #30982 )
...
* Fix (Possibly)UndeclaredGlobalVariable
* Update phan baseline
* Fix (Possibly)UndeclaredGlobalVariable (2)
* Qual: Fix notices for htdocs/admin/*
# Qual: Fix notices for htdocs/admin/*
Fixes most phan/phpstan noticies for files under htdocs/admin/* and ai.
2024-09-18 03:27:25 +02:00
Laurent Destailleur
14d5b4bcc3
Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into develop
2024-09-02 12:14:51 +02:00
ptibogxiv
5ddf586413
FIX api.class.php for expense reports ( #30818 )
...
* FIX api.class.php
Descriptions of line in expense reports are named comments
* Update api.class.php
---------
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-09-01 15:10:08 +02:00
MDW
b0087aaf61
Qual: Enable phan on modulebuilder ( #30652 )
...
* Allow null for buyer, and force '' for in printObjectLine(s)
* Allow null for Contact in show_actions_done
* Qual: Enable phan on modulebuilder
# Qual: Enable phan on modulebuilder
Most files of the modulebuilder template can be checked as regular files.
It will help improve the template
* Update baseline (enable modulebuilder notices)
* Add properties that are expected to exist on modules_boxes
* Qual: Ignore false positive (phan)
* Set phpdoc type to include null on formAddObjectLine
* Qual: Fixes for modulebuilder (phan, phpstan, bugs, format)
* Fix phpcs for intracom
* Make ModeleBoxes:showBox() signature match child class's
* Fix *box::showBox() phpdoc types
* Update index.php
---------
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-08-18 18:16:08 +02:00
thibdrev
e5c0150be4
qual: avoid double negations by introducing getDolGlobalBool() ( #30618 )
...
* Update index.php
* Update api.class.php
* Update pdf_eratosthene.modules.php
* Update pdf_sponge.modules.php
* Update pdf_cyan.modules.php
* Update partnershiputils.class.php
* Update paypalfunctions.lib.php
* Update societe.class.php
* Update functions.lib.php - create getDolGlobalBool()
* Update index.php
* Update api.class.php
* Update pdf_eratosthene.modules.php
* Update pdf_sponge.modules.php
* Update pdf_cyan.modules.php
* Update partnershiputils.class.php
* Update paypalfunctions.lib.php
* Update societe.class.php
* Update functions.lib.php
---------
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-08-13 22:50:31 +02:00
MDW
45ed4caeb2
Qual: Enable Phan Simplify rule and fix notices ( #30537 )
...
* Qual: Phan - Enable Simplyfy expression
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Update functions2.lib.php
---------
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-08-07 03:05:02 +02:00
Laurent Destailleur
9e654e65dd
Debug v20
2024-04-29 11:04:19 +02:00
Laurent Destailleur
d25ef761ad
Merge pull request #29152 from mdeweerd/test/compat/deprecations
...
Fix Tests for compatibility with deprecations
2024-04-02 13:41:04 +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
Laurent Destailleur
594da940fa
Sanitize input
2024-04-02 11:57:30 +02:00
MDW
e3f1fc3682
Cope with magic and real properties aliases in _filterObjectProperties
2024-04-02 11:25:16 +02:00
Frédéric FRANCE
b6fdae934a
fix phpstan ( #28405 )
...
Method DolibarrApi::_checkValForAPI() should return string but returns array.
2024-02-25 10:05:26 +01:00