Commit graph

136782 commits

Author SHA1 Message Date
Frédéric FRANCE
a9f93f35c7
add phpdoc (#30631)
* add phpdoc

* Update contrat.class.php
2024-08-13 20:31:03 +02:00
Quentin-Seekness
f2ada1ffbb
Update import.class.php (#30627) 2024-08-13 20:29:54 +02:00
Frédéric FRANCE
17c887a433
fix typos (#30630)
* fix typos

* fix typos
2024-08-13 20:29:40 +02:00
Laurent Destailleur
d659cbdf76 Enabled the generic oauth2 handler 2024-08-13 20:26:49 +02:00
Laurent Destailleur
0196cf944b Implement a generic handler for OAUTH token (tested with Mastodon) 2024-08-13 20:25:01 +02:00
Laurent Destailleur
88253bf647 WIP Work on generic OAuth service 2024-08-13 18:36:33 +02:00
Laurent Destailleur
1d30baf36b Clean code 2024-08-13 17:42:47 +02:00
Laurent Destailleur
8936b6ef8a Add log into curl method for oauth 2024-08-13 17:04:32 +02:00
Laurent Destailleur
14dfe8a073 Debug refresh action and add log in oauth 2024-08-13 14:59:03 +02:00
Laurent Destailleur
080c1fa41c More log on oauth refresh 2024-08-13 14:23:49 +02:00
Laurent Destailleur
eef5cea575 Clean code 2024-08-13 13:05:38 +02:00
lamrani abdelwadoud
d92e50fc66
New refactoring fediverse class (#30572)
* NEW Display for socialnetworks admin

* Fix pre-commit errors

* New functionality for custom socialnetworks

* Fix CTI errors

* Fix phan errors

* Fix Phan errors

* Fix display tabs for setup socialnetworks

* Fix CTI errors

* Fix CTI errors

* remove comments

* New display widget for fediverse

* Add test to the end for get_fiche_en

* Fix pre-commit and phan CTI errors

* update translation for title of widget

* Fix errors and update function loadBox

* add translation and fix error phpstan

* Refactoring Fediverse class for handling social networks in each class

* Fix CTI errors

* remove return function

* add description for attribute

* Fix phpStan errors

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-08-13 12:19:37 +02:00
ptibogxiv
700ee5b39e
NEW translation with action triggers API (#30595)
* NEW translation with action triggers API

* Update api_setup.class.php
2024-08-13 12:16:10 +02:00
Rafael San José
ac929bc24f
The tables associated with the BOM module are created when it is initialized. (#30603)
Co-authored-by: Rafael San José Tovar <rafael.sanjose@x-netdigital.com>
2024-08-13 12:12:20 +02:00
Frédéric FRANCE
09b6d1aa90
NEW add hook in dolibarr_set_const admin.lib.php (#30605)
* add hook in dolibarr_set_const admin.lib.php

* Update admin.lib.php

* Update admin.lib.php
2024-08-13 12:11:19 +02:00
Laurent Destailleur
ed73dc6471 Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into develop 2024-08-13 11:59:53 +02:00
Laurent Destailleur
e19b573ba0 Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into 20.0 2024-08-13 11:53:47 +02:00
Laurent Destailleur
a3ae470fce FIX #30610 - Disable the deprecation mecanism. Too many regressions. 2024-08-13 11:53:21 +02:00
Frédéric FRANCE
3510247892
fix unknown variable (fix phan) (#30617) 2024-08-13 11:09:37 +02:00
Laurent Destailleur
db93af6c77 Debug v20 2024-08-13 11:07:04 +02:00
Laurent Destailleur
f11bed462a Fix label list 2024-08-13 05:05:54 +02:00
Laurent Destailleur
79f1cc95bb Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into develop
Conflicts:
	htdocs/core/lib/company.lib.php
2024-08-13 04:47:12 +02:00
Laurent Destailleur
fe21cc3605 Debug v20 2024-08-13 04:37:19 +02:00
Laurent Destailleur
5c36a834d1 Debug v20 - Fix sql distinct 2024-08-13 04:12:09 +02:00
Laurent Destailleur
4eeee464ba Code comment 2024-08-13 01:59:00 +02:00
Laurent Destailleur
813bd1706f Merge 2024-08-12 22:11:26 +02:00
Laurent Destailleur
4f6643fe1e Merge branch '19.0' of git@github.com:Dolibarr/dolibarr.git into 20.0
Conflicts:
	htdocs/commande/card.php
	htdocs/core/multicompany_page.php
2024-08-12 21:51:31 +02:00
Laurent Destailleur
7023061cd8 Merge branch '18.0' of git@github.com:Dolibarr/dolibarr.git into 19.0 2024-08-12 21:42:42 +02:00
Laurent Destailleur
892d9cc865 Merge branch '17.0' of git@github.com:Dolibarr/dolibarr.git into 18.0 2024-08-12 21:35:51 +02:00
Benjamin Falière
5a42116ee5
NEW(ticket, admin): Add options entries (#30548)
* NEW(ticket, admin): Add options entries

* Add missing translations

* Remove ponctuation

* Remove ponctuation

* langs files

* Update ticket.lang

Remove blank line.

---------

Co-authored-by: Benjamin Falière <benjamin.faliere@altairis.fr>
2024-08-11 12:15:28 +02:00
Regis Houssin
2f080b63ee
FIX var name error and remove useless code (#30601) 2024-08-11 12:10:43 +02:00
Charlène Benke
82589a49c6
NEW Add caldav on fichinter (#30582)
* New caldav from fichinter

* Update fichinter.lib.php

* Create agendaexport.php

* Update fichinter.lib.php

* Update agendaexport.php

* Update agendaexport.php

* Update agendaexport.php

* Update agendaexport.php

* Update agendaexport.php

* Update agendaexport.php

* Update agendaexport.php

* Update agendaexport.php

* Update agendaexport.php

* Update agendaexport.php

* Update agendaexport.php

* Update fichinter_xcal.php
2024-08-11 12:07:48 +02:00
Jon Bendtsen
8a35651b3f
NEW: Create thirdparty notification by action code (#30541)
* based on createCompanyNotification, just trying to do it with code and not id number

* can now create notifications by action trigger code

* will now prevent duplications

* checks if request_data contains event or fk_action key because then it uses that and not the action code supplied as text

* checks if request_data contains event or fk_action key because then it uses that and not the action code supplied as text

* now requires a well formed request_data with an event key

---------

Co-authored-by: Jon Bendtsen <xcodeauthor@jonb.dk>
2024-08-11 00:20:45 +02:00
MDW
3805b61408
Qual: Fix phpstan message & apply stricter check (#30536) 2024-08-11 00:08:37 +02:00
Jon Bendtsen
f1678b7524
NEW: API_LOGINS_ALLOWED_FOR_GET_EXTRAFIELD (#30562)
* introducing new global variable API_LOGINS_ALLOWED_FOR_GET_EXTRAFIELDS, code copied and modified from public function getModules()

* trying to use a different method to read the variable

---------

Co-authored-by: Jon Bendtsen <xcodeauthor@jonb.dk>
2024-08-11 00:06:00 +02:00
Charlène Benke
1a3dddb3cc
FIX sanitize must allow space on attribute (#30566)
sanitize must allow space on attribute

otherwhise  "on update CURRENT_TIMESTAMP" for tms fields goes wrong
2024-08-11 00:02:05 +02:00
atm-lena
b974951a90
Body Css llxHeader (#30568)
Co-authored-by: atm-lena <lena.papazian@atm-consulting.fr>
2024-08-10 23:48:11 +02:00
atm-lena
75115382ce
llxheader body css bookcal (#30569)
Co-authored-by: atm-lena <lena.papazian@atm-consulting.fr>
2024-08-10 23:47:52 +02:00
atm-lena
72dd5c2a9f
llxHeader BodyCss IntracommReport (#30570)
Co-authored-by: atm-lena <lena.papazian@atm-consulting.fr>
2024-08-10 23:47:13 +02:00
atm-lena
50199e4ebc
llxHeader BodyCss ecm (#30571)
Co-authored-by: atm-lena <lena.papazian@atm-consulting.fr>
2024-08-10 23:46:54 +02:00
HENRY Florian
f3fa4eee6b
fix: edit extrafield tpl card adherent is not correct (#30573) 2024-08-10 23:46:10 +02:00
UltraViolet33
32e4be2507
NEW add last stock movement and product nature to StocksWithBatch export (#30578)
* NEW add last stock movement and product nature to StocksWithBatch export

Add fields to the StockWithBatch export:
- date of the last stock movement
- the nature of product from llx_c_product_nature dictionary

* fix getDateLastMovementProductBatch

* remove whitespaces

* fix whitespaces

---------

Co-authored-by: Ulysse Valdenaire <uvaldenaire@easya.solutions>
2024-08-10 23:44:52 +02:00
Frédéric FRANCE
9ea83bfb1c
NEW can add extrafields with dol_move (#30574)
* can add extrafields with dol_move

* Update files.lib.php
2024-08-10 23:36:20 +02:00
lvessiller-opendsi
1c0e738617
FIX attachment sent by mail from back office of ticket (not share on public interface) (#30583) 2024-08-10 23:30:11 +02:00
Florian Charlaix
60f9eba97c
Add webhook targets REST API (#30587) 2024-08-10 23:24:26 +02:00
Jon Bendtsen
d4387e7e16
replacing ->global-> with getDolGlobalString because phan complained in a different commit (#30589)
Co-authored-by: Jon Bendtsen <xcodeauthor@jonb.dk>
2024-08-10 23:23:09 +02:00
MDW
aa49419e8f
Qual: Fix/initial type cannot be inferred (#30591)
* Update baseline

* Add/update phpdoc typings

* Fix type for AssetDepreciationOptions as is

* Fix typing for Asset->depreciation_lines

* $card is used in derived classes, add it back to ActionsAdherentCardCommon

* Adjust code with typing/corrections for defined types

* Fix typos, code update to match typing, extra typing

* Add type cast for numeric operation

* Phpdoc/cast adjustments detected because of new phpdoc hints
2024-08-10 23:21:46 +02:00
Alexandre SPANGARO
03be473a3d
FIX #30576 - Salary payment - Date of the payment is not displayed (#30592) 2024-08-10 23:17:55 +02:00
MaximilienR-easya
0295c43885
Fix error due to mismatch type for duration value (#30593)
* Fix error due to missmatch type for duration value. It should be an INT as it is everywhere in the code compared to int value and passed as an int to function

* Fix precommit
2024-08-10 23:16:25 +02:00
sonikf
c57659edbf
Backport #30074 for v.19+ (#30597) 2024-08-10 23:08:45 +02:00