Commit Graph

617 Commits

Author SHA1 Message Date
Laurent Destailleur
c3dafa05c0 Add a better error message on API login if token is not valid. 2023-08-14 12:25:52 +02:00
Laurent Destailleur
921a6f3135 Fix warning 2023-08-06 12:26:27 +02:00
Laurent Destailleur
38a160873d Standardize code 2023-08-06 01:26:06 +02:00
Laurent Destailleur
ec39199b85 Merge branch '17.0' of git@github.com:Dolibarr/dolibarr.git into 18.0
Conflicts:
	.travis.yml
	htdocs/api/class/api_documents.class.php
	htdocs/core/db/pgsql.class.php
2023-07-26 01:42:22 +02:00
Boris Hermans
d2f9d7634b
Handle projects for the api documents listing route (#25465) 2023-07-25 23:24:11 +02:00
Laurent Destailleur
e41f449f95 FIX #yogosha17128 2023-07-19 04:14:49 +02:00
Laurent Destailleur
c75761f780 FIX Add same security test whe nuploading files from API than from GUI 2023-07-12 22:56:27 +02:00
Frédéric France
a575b696e7 use user hasRight 2023-06-19 23:27:24 +02:00
Frédéric France
ebf83fdab6 use user hasRight 2023-06-19 23:18:13 +02:00
Laurent Destailleur
31474d80f1 Doxygen 2023-06-19 00:52:43 +02:00
Guillaume Wauquier
f11d3ded2c
Rectif bug dans l'api documents
chemin incorrect pour les commandes fournisseurs
2023-06-05 19:54:48 +02:00
Laurent Destailleur
130a2dc4f7 Fix warning 2023-05-30 12:57:30 +02:00
Laurent Destailleur
6dcfb18c2e Fix warnings 2023-05-22 21:33:38 +02:00
Laurent Destailleur
37d709475d
Merge pull request #24734 from romain-neil/feat-buildoc-supplier-inv
Draft: api/documents: generate supplier invoices
2023-05-17 16:01:20 +02:00
Laurent Destailleur
a0c80afb8e
Merge pull request #24731 from romain-neil/feat-api-doc-supported-modules
doc(api/documents): add list of supported modules
2023-05-16 01:09:00 +02:00
lainwir3d
9b6a513cfb
CLOSE #24761 Add REST API to retrieve regions 2023-05-13 14:17:57 +01:00
stickler-ci
d816ef290b Fixing style errors. 2023-05-10 12:30:51 +00:00
Romain Neil
e7e40b4c9e wip: api/documents: generate supplier invoices 2023-05-10 14:27:51 +02:00
Romain Neil
9a19bd000a doc(api/documents): add list of supported modules 2023-05-10 12:23:32 +02:00
Laurent Destailleur
b270f655e9
Merge pull request #24655 from romain-neil/develop
NEW handle contract document (list, build and upload) in documents Rest API
2023-05-02 06:04:03 +02:00
Laurent Destailleur
06979fa016
Update api_documents.class.php 2023-05-02 05:58:18 +02:00
Romain Neil
2c13d26b69
Update api_documents.class.php
typo fix
2023-05-02 00:59:51 +02:00
rneil
1487c233f0 add missing copyright 2023-05-02 00:56:10 +02:00
Sarah Mainguet
4d42279fcd
Merge branch 'develop' into fix-documents-api 2023-05-01 22:20:39 +02:00
Sarah Mainguet
a804999d92 Can now add documents to events in agenda 2023-05-01 22:11:35 +02:00
Romain Neil
a4fd13e3e4 feat(api/documents): build contract 2023-05-01 22:11:27 +02:00
stickler-ci
1f8671ed84 Fixing style errors. 2023-05-01 18:11:31 +00:00
Romain Neil
458fb18b5d feat(api/documents): list contract 2023-05-01 20:10:48 +02:00
Romain Neil
ffaf748ac8 feat(api/documents): upload contract 2023-05-01 19:45:33 +02:00
Laurent Destailleur
e9aff0f776 Fix qodana warning 2023-05-01 16:41:28 +02:00
Laurent Destailleur
d40fe56cb4 Fix warning 2023-04-30 04:50:10 +02:00
Laurent Destailleur
382f45ec14 Clean code 2023-04-30 03:36:02 +02:00
Laurent Destailleur
acc7a8b1be Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into
develop
2023-03-18 01:59:40 +01:00
Laurent Destailleur
932f561fd0
Update api_documents.class.php 2023-03-17 21:07:30 +01:00
Jakub Stříbrný
0093954437 NEW Support contact in post() document API
When uploading a document via the API, add the modulepart "contact". By this, documents linked to a contact can be uploaded.
2023-03-15 16:00:20 +01:00
Laurent Destailleur
657d964899 Add a protection for bad syntax of api key 2023-03-15 12:54:04 +01:00
Laurent Destailleur
68a2131ae6 Merge branch '17.0' of git@github.com:Dolibarr/dolibarr.git into develop 2023-03-13 13:22:10 +01:00
Laurent Destailleur
d369a640de Fix encryption of api_key 2023-03-13 12:48:25 +01:00
Laurent Destailleur
7f8b09f0b6 Merge branch '17.0' of git@github.com:Dolibarr/dolibarr.git into develop 2023-03-02 10:48:36 +01:00
Laurent Destailleur
8612a88a2f Sync transifex
Debug v17
2023-03-02 10:38:45 +01:00
Laurent Destailleur
ed5c890769 Merge branch '17.0' of git@github.com:Dolibarr/dolibarr.git into develop 2023-02-25 20:12:48 +01:00
Laurent Destailleur
cbb6ca071a Fix #yogosha15157 2023-02-25 19:51:05 +01:00
Laurent Destailleur
0b4cacd291 Use dolChmod 2023-02-17 20:01:53 +01:00
Frédéric FRANCE
beba616f3c clean code 2023-02-11 22:13:15 +01:00
Laurent Destailleur
2a0a0fc470 Clean old deprecated code on social networks fields 2023-01-30 14:13:02 +01:00
Laurent Destailleur
0765a1196f FIX Check of date of validity 2023-01-27 14:40:30 +01:00
Laurent Destailleur
dfcba30577 FIX Check of date of validity 2023-01-27 14:06:31 +01:00
Christian Humpel
3c26825b5d change description 2023-01-21 08:49:24 +01:00
Christian Humpel
439f8d4bb4 New: REST Api - GET /setup/dictionary/incoterms 2023-01-21 08:45:10 +01:00
Laurent Destailleur
80d46a22f1 Merge branch '17.0' of git@github.com:Dolibarr/dolibarr.git into develop 2023-01-18 21:36:57 +01:00
Laurent Destailleur
cd5009d8a4 Merge branch '16.0' of git@github.com:Dolibarr/dolibarr.git into 17.0 2023-01-18 21:21:49 +01:00
Laurent Destailleur
283ad1abcf Merge branch '15.0' of git@github.com:Dolibarr/dolibarr.git into 16.0 2023-01-18 20:54:16 +01:00
Laurent Destailleur
2a299068ad Merge branch '14.0' of git@github.com:Dolibarr/dolibarr.git into 15.0 2023-01-18 20:45:44 +01:00
Laurent Destailleur
40e007bb61 More generic error message 2023-01-18 19:54:38 +01:00
Ferran Marcet
8c969c7765 Merge branch '14.0up' into 14.0 2023-01-18 10:52:40 +01:00
Ferran Marcet
cb96378031 FIX: API access for deactivated users 2023-01-18 10:48:18 +01:00
Laurent Destailleur
982ee6259f NEW Session invalidation after a password change 2023-01-14 21:21:48 +01:00
Laurent Destailleur
43a0ccce2b Clean code 2023-01-04 11:37:24 +01:00
Laurent Destailleur
5026de62f7 Merge branch '16.0' of git@github.com:Dolibarr/dolibarr.git into develop 2022-12-01 17:48:29 +01:00
Laurent Destailleur
9b5fc20308 Merge branch '15.0' of git@github.com:Dolibarr/dolibarr.git into 16.0 2022-12-01 17:46:13 +01:00
Laurent Destailleur
cc982adc2f Merge branch '14.0' of git@github.com:Dolibarr/dolibarr.git into 15.0 2022-12-01 17:42:02 +01:00
Laurent Destailleur
c22d9f282a
Merge pull request #23016 from inovea-conseil/FIX_product_type9
FIX product_type 9
2022-11-30 00:41:35 +01:00
ATM-Nicolas
e767c9b4a9 FIX : Stickler 2022-11-26 00:42:50 +01:00
ATM-Nicolas
a0553c6e52 FIX : Stickler 2022-11-26 00:35:08 +01:00
ATM-Nicolas
f3e689f841 FIX : Documents API inconsistency 2022-11-26 00:02:17 +01:00
Laurent Destailleur
d07e379c86
Merge branch 'develop' into patch-56 2022-11-01 22:07:35 +01:00
Laurent Destailleur
5fb7b33dca
Merge pull request #22700 from ptibogxiv/patch-57
NEW translate setup/ticket API
2022-11-01 21:50:06 +01:00
Laurent Destailleur
b5170a96fe
Merge pull request #22701 from ptibogxiv/patch-58
NEW support lang in Civilities API
2022-11-01 21:48:56 +01:00
Laurent Destailleur
6c06c110d6
Merge pull request #22711 from ptibogxiv/patch-59
NEW translation for shipping method API
2022-11-01 20:47:16 +01:00
Laurent Destailleur
3ed470ea50 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2022-11-01 20:26:09 +01:00
Laurent Destailleur
dca945f1ab Doc 2022-11-01 20:25:58 +01:00
stickler-ci
82da70841f Fixing style errors. 2022-10-30 16:20:15 +00:00
ptibogxiv
55d233e2da
NEW translate for contact type API
cf #22699
2022-10-30 17:19:32 +01:00
ptibogxiv
ebcaa34134
NEw translation for shipping method API
cf https://github.com/Dolibarr/dolibarr/pull/22699
2022-10-30 16:42:54 +01:00
ptibogxiv
6dd0712193
Update api_setup.class.php 2022-10-28 21:26:45 +02:00
ptibogxiv
0277c07c31
Update api_setup.class.php 2022-10-28 21:25:42 +02:00
ptibogxiv
e450b950d1
Update api_setup.class.php 2022-10-28 21:24:30 +02:00
ptibogxiv
65cbd2c663
Update api_setup.class.php
some values needs more dictionaries
2022-10-28 17:59:34 +02:00
ptibogxiv
81bec04586
Update api_setup.class.php 2022-10-28 16:17:14 +02:00
ptibogxiv
8d604e3b2d
NEW support lang in Civilities API 2022-10-28 16:16:11 +02:00
ptibogxiv
b0c6b59eb2
NEW translate setup/ticket API
link to https://github.com/Dolibarr/dolibarr/pull/22699

& fix for multicompany
2022-10-28 15:56:15 +02:00
ptibogxiv
ba20087ceb
FIX better compatibility for translation of label in setup API 2022-10-28 15:52:59 +02:00
Laurent Destailleur
a2d9dd3388 Clean code 2022-10-22 00:08:10 +02:00
Alexandre SPANGARO
c674f00cb2 Use isModEnabled 2022-09-25 15:27:42 +02:00
Laurent Destailleur
e1b5e5033f Clean code of deprecated field 2022-09-23 09:35:17 +02:00
Laurent Destailleur
6fb9a4713c Merge branch '16.0' of git@github.com:Dolibarr/dolibarr.git into develop 2022-09-21 01:30:40 +02:00
Laurent Destailleur
1f2ad8efbf FIX API reception return error 500 2022-09-21 01:13:53 +02:00
Philippe GRAND
857646ed36 update code toward php8 compliance 2022-09-10 11:00:38 +02:00
Frédéric France
8e66b7207e replace ! empty by !empty 2022-08-31 22:14:20 +02:00
Laurent Destailleur
96889609e8 Fix restore use of API get when ID = 0 2022-08-27 19:02:05 +02:00
Laurent Destailleur
966aaddd39 Remove clean of protected vars 2022-08-25 14:46:10 +02:00
Laurent Destailleur
4c10c04f9f
Merge pull request #20495 from atm-john/new_fix_regression_select_extrafield_search
FIX : regression select extrafield search + fix function name
2022-05-24 21:55:33 +02:00
Laurent Destailleur
4de50da0dd Repare code to forbidden var_dump() into code 2022-05-17 14:55:38 +02:00
Laurent Destailleur
40d0c3b996 Merge branch '15.0' of git@github.com:Dolibarr/dolibarr.git into develop
Conflicts:
	htdocs/compta/tva/card.php
	htdocs/langs/en_US/admin.lang
2022-04-28 19:23:13 +02:00
Laurent Destailleur
134113db64 Fix upload of doc for purchase orders 2022-04-26 01:00:10 +02:00
Laurent Destailleur
0023850c9a
Update api_documents.class.php 2022-04-14 22:16:17 +02:00
Philippe GRAND
d62d24a337 add code to get documents list by knowledgemanagement with api 2022-04-14 21:47:35 +02:00
ATM john
c1d9ea95dc fix function name 2022-03-30 12:16:17 +02:00
Laurent Destailleur
8603d493ad Merge branch '15.0' of git@github.com:Dolibarr/dolibarr.git into develop
Conflicts:
	htdocs/contrat/list.php
	htdocs/install/mysql/tables/llx_partnership.key.sql
2022-03-19 17:34:26 +01:00
Laurent Destailleur
ed631b2b06 Fix doxygen, missing error message 2022-03-18 16:14:20 +01:00
Laurent Destailleur
548cad0508 FIx #20110 2022-02-28 21:30:12 +01:00
Laurent Destailleur
6b8312aab0 Merge branch '15.0' of git@github.com:Dolibarr/dolibarr.git into develop 2022-02-17 20:51:25 +01:00
Laurent Destailleur
d19aca7192 # WARNING: head commit changed in the meantime
Merge branch '15.0' of git@github.com:Dolibarr/dolibarr.git into 15.0
2022-02-17 20:50:03 +01:00
Laurent Destailleur
aacd439765 Merge branch '13.0' of git@github.com:Dolibarr/dolibarr.git into 14.0
Conflicts:
	htdocs/api/class/api_setup.class.php
2022-02-17 20:46:20 +01:00
Laurent Destailleur
a71bdc4024
Merge pull request #20053 from ptibogxiv/patch-5
NEW API REST filter states by country
2022-02-17 19:53:00 +01:00
Laurent Destailleur
1b53ed09f9 Work on custom report feature 2022-02-15 11:03:48 +01:00
ptibogxiv
061dd565cc
Update api_setup.class.php 2022-02-13 13:22:01 +01:00
ptibogxiv
f2b88c6d7c
Update api_setup.class.php 2022-02-13 10:09:39 +01:00
ptibogxiv
8d3e97bab9
Update api_setup.class.php 2022-02-12 19:21:07 +01:00
ptibogxiv
54af0cf47a
NEW API REST filter states by country 2022-02-12 19:02:00 +01:00
ptibogxiv
a5a8f30939
FIX API REST setup
bad words
2022-02-12 17:08:43 +01:00
ptibogxiv
11e15255bd
FIX API REST for setup values 2022-02-12 16:59:29 +01:00
Laurent Destailleur
a16d47c78e Close #19890 2022-01-23 12:06:40 +01:00
Laurent Destailleur
7ccb1c94a1 Fix var not defined 2022-01-13 19:07:05 +01:00
Laurent Destailleur
054116900a Merge branch '15.0' of git@github.com:Dolibarr/dolibarr.git into develop 2022-01-13 11:59:05 +01:00
Laurent Destailleur
d3af00d4e6 Merge branch '14.0' of git@github.com:Dolibarr/dolibarr.git into 15.0 2022-01-12 10:58:24 +01:00
ptibogxiv
63611ab717
NEW add setup/establishments API (need for recruitment API) 2022-01-11 20:24:23 +01:00
Laurent Destailleur
1efbff8fea Fix error message 2022-01-11 15:42:03 +01:00
Laurent Destailleur
b41fdb6ec9 Fix tool for generic to sql filters. Must not be saved into api files. 2022-01-01 21:46:16 +01:00
Laurent Destailleur
0387b9922e FIX error message on sqlfilter in API 2021-12-20 20:49:32 +01:00
Laurent Destailleur
626cd24305 Clean code for #19639 2021-12-19 17:05:57 +01:00
Scrutinizer Auto-Fixer
5567310e44 Scrutinizer Auto-Fixes
This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com
2021-10-25 20:07:31 +00:00
Laurent Destailleur
ab78930476 Add api to post supplier proposal and supplier order documents 2021-10-06 18:50:29 +02:00
Laurent Destailleur
96b617cb4d Merge branch '14.0' of git@github.com:Dolibarr/dolibarr.git into develop
Conflicts:
	htdocs/eventorganization/conferenceorboothattendee_card.php
	htdocs/mrp/mo_list.php
2021-10-06 18:30:26 +02:00
Laurent Destailleur
1c53035e38 Doc 2021-10-06 16:19:36 +02:00
Laurent Destailleur
902fed1f0d Merge branch '14.0' of git@github.com:Dolibarr/dolibarr.git into develop
Conflicts:
	htdocs/ecm/index.php
2021-10-02 20:09:06 +02:00
Laurent Destailleur
166d3b08d6 Add LIBXML_NONET to simplexml_load_string 2021-09-30 20:12:01 +02:00
Laurent Destailleur
95e1ec87dc
Merge branch 'develop' into patch-445 2021-09-30 13:40:23 +02:00
stickler-ci
4d62aff8aa Fixing style errors. 2021-09-28 18:29:50 +00:00
ptibogxiv
1b71404225
Update api_setup.class.php 2021-09-28 20:27:45 +02:00
Laurent Destailleur
1199782d61
Update api_setup.class.php 2021-09-28 13:10:46 +02:00
Laurent Destailleur
4f660343aa
Update api_setup.class.php 2021-09-28 12:59:00 +02:00
Laurent Destailleur
b795d6b430
Update api_setup.class.php 2021-09-28 12:58:19 +02:00
stickler-ci
509e1f5636 Fixing style errors. 2021-09-25 10:48:39 +00:00
ptibogxiv
1cdba9fb80
NEW API get list of legal form of business 2021-09-25 12:46:27 +02:00
stickler-ci
6b820ae4c5 Fixing style errors. 2021-09-25 10:16:29 +00:00
ptibogxiv
77d64e4fe2
NEW API list of staff units 2021-09-25 12:13:06 +02:00
Laurent Destailleur
6fd191b01a Update doc 2021-09-13 01:22:53 +02:00
Laurent Destailleur
e965d6d6f2 Merge branch '14.0' of git@github.com:Dolibarr/dolibarr.git into develop
Conflicts:
	htdocs/admin/pdf.php
	htdocs/api/class/api_access.class.php
2021-09-03 11:02:21 +02:00
Laurent Destailleur
7758c0b8a7 Fix phpcs 2021-09-02 16:06:19 +02:00
Laurent Destailleur
8600d8d00d Merge branch '14.0' of git@github.com:Dolibarr/dolibarr.git into develop 2021-09-01 22:50:06 +02:00
Laurent Destailleur
0f325bdd65
Update api_access.class.php 2021-09-01 18:05:24 +02:00
Laurent Destailleur
d2f3d134df Code comment. Better _checkFilters 2021-08-30 16:54:45 +02:00
lainwir3d
359dae6af8 FIX #18542 REST API: set global $user variable to DolibarrApiAccess::user. 2021-08-29 23:13:41 +04:00
Laurent Destailleur
46d993c9a6 Clean code 2021-08-27 22:42:04 +02:00
Laurent Destailleur
bda36337cd Prepare fix #yogosha6443 2021-06-30 17:22:36 +02:00
Laurent Destailleur
fb46ece906 Fix yogosha 6347 2021-06-09 15:36:47 +02:00
Laurent Destailleur
ce8c606132 Clean APIs 2021-05-12 11:04:22 +02:00
Frédéric FRANCE
0d3afb573a
align check code 2021-05-10 14:33:26 +02:00
Laurent Destailleur
1c95e2b7c7 FIX #17453 2021-05-03 14:58:29 +02:00