Commit Graph

128266 Commits

Author SHA1 Message Date
Mathieu "rid" Soula
3e907a00a9 Revert changes
Removes termination callback
2024-01-18 10:18:03 +01:00
Mathieu "rid" Soula
1e779aba67 Fix copy error 2024-01-17 12:15:32 +01:00
Mathieu "rid" Soula
a7c0d4357d Add terminate callback
Add a termination function that will call termination API callback if existing.
2024-01-17 11:39:01 +01:00
Mathieu "rid" Soula
12a30cb907 Update index.php
Fix PHPScan error
2024-01-17 11:37:10 +01:00
Mathieu "rid" Soula
85b90373f5 QUAL Sending API response data to clients before completing post-processing tasks.
This commit allows Rester to immediately send response data back to the client before completing some time consuming post-processing tasks (such as sending emails) in a termination callback if defined.

Termination callback should be created into the same class as the API method it terminates. Callback name must match the following format : "_terminate_" + <API_METHOD_NAME> + "_" + <API_METHOD_RESPONSE_FORMAT_EXTENSION>.

For instance, termination callback for orders "post" method defined in htdocs/commande/class/api_orders.class.php must be named "_terminate_post_json".
2024-01-17 11:16:43 +01:00
Laurent Destailleur
1d00d90872 Merge pull request #25740 from atm-thibaultf/NEW_hide_external_user_in_combobox
NEW : hide external user in combobox
2024-01-15 21:59:30 +01:00
Laurent Destailleur
a2436a6c9c Update user.php 2024-01-15 21:58:37 +01:00
Laurent Destailleur
58036f1b39 Update user.php 2024-01-15 21:58:03 +01:00
Laurent Destailleur
47bb0cd17a Merge pull request #27544 from thibdrev/patch-1
fix phpstan
2024-01-15 21:54:31 +01:00
Laurent Destailleur
9fb433011c Merge pull request #27552 from frederic34/patch-12
Update .pre-commit-config.yaml
2024-01-15 21:52:34 +01:00
Laurent Destailleur
fc9206097a Merge pull request #27551 from frederic34/patch-10
fix phpstan
2024-01-15 21:50:11 +01:00
Laurent Destailleur
772508f95e Merge pull request #27545 from lamrani002/updateEventAgendaOnUser
NEW functionality for list event for user
2024-01-15 21:49:50 +01:00
Laurent Destailleur
8ec4398166 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2024-01-15 21:49:19 +01:00
Laurent Destailleur
3e3e6ec139 Fix doxygen 2024-01-15 21:49:03 +01:00
Laurent Destailleur
9814d80612 Merge pull request #27548 from frederic34/patch-5
fix phpstan
2024-01-15 21:43:15 +01:00
Laurent Destailleur
525820ae50 Merge pull request #27549 from frederic34/patch-7
fix phpstan
2024-01-15 21:42:49 +01:00
Laurent Destailleur
9b41956425 Merge pull request #27550 from frederic34/patch-8
fix phpstan
2024-01-15 21:42:32 +01:00
Laurent Destailleur
e68c669b38 Merge pull request #27547 from frederic34/patch-3
fix phpstan
2024-01-15 21:42:19 +01:00
Frédéric FRANCE
4b214b07a2 Update .pre-commit-config.yaml 2024-01-15 21:07:30 +01:00
thibdrev
f5e0a9c411 phpstan
Function dol_get_first_day() should return int but returns string.
Function dol_get_last_day() should return int but returns string.
2024-01-15 20:56:59 +01:00
Frédéric FRANCE
19059d6705 fix phpstan 2024-01-15 20:49:50 +01:00
Frédéric FRANCE
a73bd4f256 fix phpstan 2024-01-15 20:48:34 +01:00
Frédéric FRANCE
5ee50bd9a9 fix phpstan 2024-01-15 20:45:47 +01:00
Frédéric FRANCE
a87ba1a9c1 fix phpstan 2024-01-15 20:41:32 +01:00
Frédéric FRANCE
c4d19d6202 fix phpstan 2024-01-15 20:27:44 +01:00
Laurent Destailleur
370262d1f3 Merge pull request #27099 from altairisfr/ordermode
add constant SUPPLIER_ORDER_MODE_OPTIONAL
2024-01-15 20:21:30 +01:00
Laurent Destailleur
941dbbde78 Merge pull request #27537 from libremaster/develop
NEW: cronjob: deny to launch a method from a deactivated module
2024-01-15 20:20:26 +01:00
Laurent Destailleur
4ef0181805 Merge branch 'develop' into updateEventAgendaOnUser 2024-01-15 20:15:10 +01:00
Laurent Destailleur
f8b6ecabb7 Merge pull request #27546 from frederic34/patch-3
Update .pre-commit-config.yaml
2024-01-15 20:11:20 +01:00
Frédéric FRANCE
208152c1e2 Update .pre-commit-config.yaml 2024-01-15 19:48:55 +01:00
Laurent Destailleur
669d222a80 Merge branch 'develop' into patch-3 2024-01-15 19:40:17 +01:00
Laurent Destailleur
ac514eadfd Fix case 2024-01-15 19:39:55 +01:00
Laurent Destailleur
346bf91ced Merge branch 'develop' into updateEventAgendaOnUser 2024-01-15 19:38:15 +01:00
Laurent Destailleur
1df6bb4242 Update usergroups.lib.php 2024-01-15 19:37:46 +01:00
Laurent Destailleur
2cfee1fb3c Doc 2024-01-15 19:32:35 +01:00
Frédéric FRANCE
ada9193da7 Update .pre-commit-config.yaml 2024-01-15 19:03:38 +01:00
Lamrani Abdel
ca52a8180e add function for list event for user 2024-01-15 18:57:41 +01:00
thibdrev
f41a5bc752 phpstan
Function dol_get_first_day() should return int but returns string.
Function getWeekNumber() should return int but returns string.
2024-01-15 18:54:33 +01:00
Christophe TREMBLAY-GUILLOUX
f86c830251 Merge remote-tracking branch 'upstream/develop' into develop 2024-01-15 18:21:37 +01:00
Christophe TREMBLAY-GUILLOUX
0b259bf564 Simpler version to check if a module is enabled 2024-01-15 18:07:13 +01:00
Laurent Destailleur
bdbe31c5e6 Fix phpcs 2024-01-15 18:05:30 +01:00
Laurent Destailleur
936be12f44 Merge branch '19.0' of git@github.com:Dolibarr/dolibarr.git into develop 2024-01-15 17:21:26 +01:00
Laurent Destailleur
21efad237a Merge branch '19.0' of git@github.com:Dolibarr/dolibarr.git into 19.0 2024-01-15 17:19:41 +01:00
Laurent Destailleur
e6c3c5993d Merge branch '17.0' of git@github.com:Dolibarr/dolibarr.git into 18.0 2024-01-15 17:14:27 +01:00
Christophe TREMBLAY-GUILLOUX
8083984f92 FIX: Remove blank line 2024-01-15 16:07:07 +01:00
Christophe TREMBLAY-GUILLOUX
2772b97bd4 FIX: typo: Swith => Switch 2024-01-15 15:52:00 +01:00
Christophe TREMBLAY-GUILLOUX
d6a79b4eac Merge remote-tracking branch 'upstream/develop' into develop 2024-01-15 15:50:48 +01:00
Christophe TREMBLAY-GUILLOUX
ee0b888b8e NEW: cronjob: deny to launch a method from a deactivated module 2024-01-15 15:38:30 +01:00
Laurent Destailleur
9a1a5fd91c Merge branch '19.0' of git@github.com:Dolibarr/dolibarr.git into 19.0 2024-01-15 14:35:24 +01:00
Laurent Destailleur
0cc66bbed6 Merge branch '16.0' of git@github.com:Dolibarr/dolibarr.git into 17.0 2024-01-15 14:35:18 +01:00