Commit graph

151292 commits

Author SHA1 Message Date
Noé Cendrier
57e9e5f845
FIX: PHPDoc wrong return value (#30634)
* FIX: PHPDoc wrong return value

* better type

* FIX: there is more types for Categorie::containing() return
2024-08-14 16:05:24 +02:00
Laurent Destailleur
3822ab2a5c Debug v20 2024-08-14 15:33:08 +02:00
Laurent Destailleur
467e96e81f Debug v20 2024-08-14 15:32:34 +02:00
Laurent Destailleur
a765760e81 Update doxygen 2024-08-14 14:52:35 +02:00
Laurent Destailleur
6f3ae85510 Lang entries have been added 2024-08-14 14:46:38 +02:00
Laurent Destailleur
d038bbe6ee Clean robots.txt 2024-08-14 14:43:57 +02:00
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
Laurent Destailleur
59540e381c Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into 20.0 2024-08-14 02:35:49 +02:00
Laurent Destailleur
0abc7c580c Debug v20 2024-08-14 02:35:30 +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
Frédéric FRANCE
c9cdd3d1d8
fix default warehouse (#30624)
* fix default warehouse

* Update card.php
2024-08-13 20:30:46 +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
01f25071f4 Debug v20 2024-08-13 19:08:11 +02:00
Laurent Destailleur
88253bf647 WIP Work on generic OAuth service 2024-08-13 18:36:33 +02:00
Laurent Destailleur
9d40155ac1 Fix oauth for microsoft2 2024-08-13 18:22:10 +02:00
Laurent Destailleur
1d30baf36b Clean code 2024-08-13 17:42:47 +02:00
Laurent Destailleur
b876d102ba Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into 20.0 2024-08-13 17:24:14 +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é
2dc7b4f173 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:13:13 +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
Frédéric FRANCE
6d6b26bf83
fix display date update of supplier price (#30619) 2024-08-13 12:01:52 +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