Commit Graph

121623 Commits

Author SHA1 Message Date
Laurent Destailleur
d784bceeef Look and feel v21: Combo of role must use the placeholder. 2024-08-14 14:39:58 +02:00
Laurent Destailleur
fc9b9b7c0d Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2024-08-14 14:12:19 +02:00
Laurent Destailleur
356e34ebee Fix #30635 2024-08-14 14:11:46 +02:00
MDW
be0f28245c
Qual: Fix phan notices wrt main.inc.php, menus (#30633)
* Qual: Fix phan notices wrt main.inc.php, menus

# Qual: Fix phan notices wrt main.inc.php, menus

This fixes phan notices stemming from main.inc.php and the menu classes.

* Qual: Fix phpstan notice that dol_authmode always set

# Qual: Fix phpstan notice that dol_authmode always set

dol_authmode is always set because it is now initialised.
2024-08-14 14:05:56 +02:00
Frédéric FRANCE
4df9e44663
fix expects string, bool given (#30636)
* fix expects string, bool given

* fix expects string, bool given

* fix expects string, bool given
2024-08-14 13:58:17 +02:00
MDW
e570f59e2d
Qual: Phan fixes (mainly Initial type cannot be inferred) in popular changed classes (#30604)
* Update setValueFrom $id type to include null

* Only 2 arguments for ModeleNumRefMembers::getToolTip

* Fix PhanTypeConversionFromArray

* Only 6 args for PaymentSalary::addPaymentToBank

* Fix typing hints (array -> string)

* Fix uninitialized variables

* Add cssview to attributes phpdoc

* Avoid double typing specification (Phan notice)

* Qual: Ensure variable is defined (phan)

* Ensure phpdoc typing for verif method

* Ensure phpdoc typing for getNextValue method

* Add status as data key in cols array

* Ensure preg_replace operates on string (phan)

* Correct type for desiredstock

* Fix typing with casts (phan)

* Fix check that notification already exists

* Initialise fk_parent_id to fix typing issue

* Qual: Fix phan notices for Societe & related

* Qual: Fix typing for Facture and related

* Qual: Fix typing for Product & related

* Update baseline

* Fix new phpstan notices
2024-08-14 01:24:55 +02:00
Laurent Destailleur
8810753422 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2024-08-13 23:35:07 +02:00
Laurent Destailleur
6115f0a614 Fix tabs must appears only on setup of module 2024-08-13 23:34:21 +02:00
ptibogxiv
771dc829d9
NEW more complete stock product API call (#30567)
* NEW more complete stock product API call

* Update api_products.class.php

* Update api_products.class.php
2024-08-13 23:17:36 +02:00
Frédéric FRANCE
32839b138b
fix phpstan level 5 (#30565)
* fix phpstan level 5

* fix phpstan level 5

* fix phpstan level 5

* fix phpstan level 5

* fix phpstan level 5

* fix phpstan level 5

* fix phpstan level 5

* fix phpstan level 5

* fix phpstan level 5

* fix phpstan level 5

* fix phpstan level 5

* fix phpstan level 5

* fix phan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

fix phpstan

fix phpstan

fix phpstan

* increase level for apstat
2024-08-13 23:16:09 +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
Frédéric FRANCE
803c3c2f30
fix phpstan sendXXX expects int (#30519)
* fix sendXXX expects int

* fix sendEmailTo expects int

* fix regression

* fix loadxxx expects int

* fix loadxxx expects int

* fix getxxx expects int

* fix getxxx expects int

* fix getxxx expects int

* fix getxxx expects int

* fix getxxx expects int

* fix getxxx expects int

* fix getxxx expects int

* fix getxxx expects int

* fix getxxx expects int
2024-08-13 20:39:40 +02:00
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