Laurent Destailleur
43d8e26023
Move API HTTP code from 401 to 403
2024-01-18 16:25:47 +01:00
MDW
a04f2bf4e7
Qual: Spelling fixes that newly appeared. ( #27495 )
...
* Qual: Spelling fixes that newly appeared.
# Qual: Fix spelling erros that appeared since the bulk updates.
These issues mostly appeared since the bulk updates (a few ones were postponed
to make sure no real spelling errors were missed.)
* Update modulebuilder.lib.php
* Update pdf_standard.modules.php
---------
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr >
2024-01-14 12:26:37 +01:00
MDW
591306d7b1
Qual: Spelling htdocs/[l-o]* & htdocs/pa* ( #27435 )
...
# Qual: Fix spelling htdocs/[l-o]* & htdocs/pa*
Mostly comments, some local variables changed and translations to avoid
automatic fixes.
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr >
2024-01-12 18:06:50 +01:00
Laurent Destailleur
e2f49c407f
Clean sql request to use exist instead of left join
2024-01-09 10:44:50 +01:00
Fabian Heinz
b78632a20e
api fixes
...
According to [RFC2616](https://www.rfc-editor.org/rfc/rfc2616#section-10.2 ), APIs should return 2xx status codes if the request was correct.
The response should be status 200 with an empty result array.
2023-12-31 14:11:05 +01:00
Laurent Destailleur
d92c65ad91
FIX infinite loop in API call/trigger by adding a caller
2023-12-15 12:15:33 +01:00
pascal
80f060c771
fix tab indentation
2023-09-26 18:43:25 +02:00
pascal
871f896962
implementation of properties filter
2023-09-26 18:04:48 +02:00
Laurent Destailleur
31474d80f1
Doxygen
2023-06-19 00:52:43 +02:00
VMR Global Solutions
926aa6fec7
API add / fix filter on extrafields in index()
...
Add / change in api_xxx.class.php files the ability to filter on extrafields when missing in the public functions index()
by changing the SQL query with the pattern
" FROM ".MAIN_DB_PREFIX"xxxx AS t LEFT JOIN ".MAIN_DB_PREFIX."xxxx_extrafields AS ef ON (ef.fk_object = t.rowid)
2023-04-28 09:31:33 +02:00
Lamrani Abdel
0d3a4d68b2
add comment in api_mymodule for seperate methods
2023-03-01 23:20:42 +01:00
Laurent Destailleur
cbb6ca071a
Fix #yogosha15157
2023-02-25 19:51:05 +01:00
Laurent Destailleur
0165c6d490
Better error management on API delete
2022-11-26 00:22:01 +01: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
d514d72ac5
Doxygen
2022-04-03 12:35:30 +02:00
ATM john
c1d9ea95dc
fix function name
2022-03-30 12:16:17 +02:00
Laurent Destailleur
0387b9922e
FIX error message on sqlfilter in API
2021-12-20 20:49:32 +01:00
Laurent Destailleur
3ce5674b76
Merge branch '13.0' of git@github.com:Dolibarr/dolibarr.git into 14.0
2021-08-28 18:01:06 +02:00
lmarcouiller
ce7a301896
Fix #18519 : Modulebuilder api permission
2021-08-27 11:48:56 +02:00
Laurent Destailleur
fb46ece906
Fix yogosha 6347
2021-06-09 15:36:47 +02:00
Laurent Destailleur
1c95e2b7c7
FIX #17453
2021-05-03 14:58:29 +02:00
Laurent Destailleur
4926ac1e24
Fix make protected method not visible
2021-04-28 15:25:06 +02:00
Laurent Destailleur
f54d14bfd6
Add method checkValForAPI to clean data from API input
2021-04-27 01:05:14 +02:00
Laurent Destailleur
ac68599fab
Fix #yogosha5877
2021-04-24 21:02:48 +02:00
Frédéric FRANCE
f73c0abec1
code syntax m... directories
2021-02-26 18:26:44 +01:00
werewolf7160
83f24e6fd2
call to createCommon() return int and not bool
...
with generated Object, the post request call to createCommon() in it and taht function return a int (id or -1 if error).
but the test on the returned value is a '!', that don't return false on "-1".
a post request with an sql error for example(foreign key error for my test), will always return 200 instead of 500 with the error
2021-02-06 00:21:53 +01:00
Scrutinizer Auto-Fixer
ab25e047c0
Scrutinizer Auto-Fixes
...
This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com
2020-10-31 17:51:30 +00:00
Frédéric FRANCE
8190711342
doxygen
2020-10-30 18:01:01 +01:00
Laurent Destailleur
cd8ebd9500
Fix warnings
2020-09-20 16:57:53 +02:00
Laurent Destailleur
216b3c885d
Fix escaping
2020-09-20 01:30:36 +02:00
Laurent Destailleur
a607ff4c1a
Merge branch '12.0' of git@github.com:Dolibarr/dolibarr.git into develop
...
Conflicts:
htdocs/core/lib/functions2.lib.php
htdocs/core/lib/project.lib.php
htdocs/langs/fr_FR/bills.lang
htdocs/langs/fr_FR/products.lang
htdocs/langs/fr_FR/stocks.lang
htdocs/langs/fr_FR/ticket.lang
htdocs/mrp/mo_card.php
2020-06-18 15:50:31 +02:00
Laurent Destailleur
c0b269b9ee
Fix Permissions on MO and API for MO
2020-06-18 01:09:30 +02:00
Laurent Destailleur
42860d752c
Fix templates
2020-06-17 22:11:22 +02:00
Frédéric FRANCE
85625a46bb
add new rule
2020-05-21 09:35:30 +02:00
Frédéric FRANCE
43dcd9beb5
add new rule
2020-05-21 00:02:33 +02:00
nervo
ba0ca3f7f7
Reindent module template
2020-05-01 08:40:55 +02:00
Scrutinizer Auto-Fixer
444c293c01
Scrutinizer Auto-Fixes
...
This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com
2020-04-10 08:59:32 +00:00
Laurent Destailleur
2c477c7169
Fix doxygen
2020-02-20 13:54:41 +01:00
Laurent Destailleur
b958997268
Clean code of APIs
2019-11-02 14:49:26 +01:00
Laurent Destailleur
a1700e71be
Fix phpcs
2019-10-31 21:18:38 +01:00
Alexandre SPANGARO
02dbc11f98
Move Gnu.org to https
2019-09-23 21:55:30 +02:00
Laurent Destailleur
529dd05226
Replace deprecated code
2019-09-06 10:53:05 +02:00
Laurent Destailleur
0f8c7df6fe
Debug api of module BOM
2019-05-02 12:19:43 +02:00
Laurent Destailleur
4756499a81
Debug module builder for generation of APIs
2019-05-02 12:03:14 +02:00
Laurent Destailleur
401ad65975
Fix API explorer was broken due to corrupted API
2019-03-06 18:04:36 +01:00
Frédéric FRANCE
f283782445
change visibility
2019-03-04 19:57:46 +01:00
Frédéric FRANCE
014f69850e
add visibility
2019-03-01 23:08:57 +01:00
Frédéric FRANCE
06db81f3c3
wip
2019-02-26 00:02:39 +01:00
Frédéric FRANCE
7ee086b402
PSR2 space after comma in function call
2019-01-27 11:55:16 +01:00
Laurent Destailleur
f29720cc98
Fix scrutinizer bug
2018-09-08 18:40:36 +02:00