Commit graph

134249 commits

Author SHA1 Message Date
Laurent Destailleur
f1a3df108f Fix thumbs replace by opencollective 2024-04-08 14:59:21 +02:00
Laurent Destailleur
3215fa1184 Try to add stats fro ossinsight 2024-04-08 14:30:44 +02:00
Laurent Destailleur
1cced0d841 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2024-04-08 14:00:28 +02:00
Laurent Destailleur
ea1c9ad11d Fix grouping of security alerts 2024-04-08 14:00:13 +02:00
Zephyriony
6f524405af
QUAL Rename column fk_origin_line on shipment lines into fk_elementdet to match a generic use. (#28989)
* Update expedition.class.php 

Adapting the query and code to the new table format

* Update llx_expeditiondet.sql

* Update expedition.class.php

* Update expedition.class.php

* Update expedition.class.php

* Update expedition.class.php

* Update expedition.class.php

* Update expedition.class.php

* Update expedition.class.php

* Update expedition.class.php

* Update expedition.class.php

* Update llx_expeditiondet.sql

* Update expedition.class.php

* rename fk_origin_line to fk_elementdet

* rename fk_origin_line to fk_elementdet

* rename fk_origin_line to fk_elementdet

* rename fk_origin_line to fk_elementdet

* rename fk_origin_line to fk_elementdet

* rename fk_origin_line to fk_elementdet

* rename fk_origin_line to fk_elementdet

* rename fk_origin_line to fk_elementdet

* rename fk_origin_line to fk_elementdet

* rename fk_origin_line to fk_elementdet

* Update expedition.class.php

* Update expedition.class.php

* rename fk_origin_line to fk_elementdet

* rename fk_origin_line to fk_elementdet

* Update 19.0.0-20.0.0.sql

---------

Co-authored-by: sonikf <93765174+sonikf@users.noreply.github.com>
2024-04-08 12:44:49 +02:00
Laurent Destailleur
35908a2aad Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2024-04-08 12:35:09 +02:00
Laurent Destailleur
db65c11981 FIX #28541 FIX #29240 trunc barcode to avoid trespass on fichhalfright 2024-04-08 12:34:46 +02:00
Charlène Benke
e4657c6b03
MAIN_SUPPORT_SHARED_CONTACT_BETWEEN_THIRDPARTIES error (#29010)
* MAIN_SUPPORT_SHARED_CONTACT_BETWEEN_THIRDPARTIES error

if we enable MAIN_SUPPORT_SHARED_CONTACT_BETWEEN_THIRDPARTIES we disable the native contact tabs

* Update companies.lang

* Update companies.lang

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-04-08 12:13:38 +02:00
Laurent Destailleur
ab53b275eb Fix default value 2024-04-08 12:09:05 +02:00
Laurent Destailleur
b9b097057a Fix subtype must be visible only for countries that need subtype
invoices
2024-04-08 12:02:31 +02:00
Laurent Destailleur
7f780fcb57 It seems constant are for storing data only and used for
DolibarrModules.class.php file only (main code shoud only use
->hasRight), so i try to move them.
2024-04-08 11:53:49 +02:00
Regis Houssin
68eb5e409a
NEW module user rights enhancement (#29150)
* NEW module user rights enhancement

* FIX syntax error

* FIX fuck

* FIX syntax error

* FIX Add label with the current language (key or with PermissionXXX)

* FIX wrong test

* FIX optimize

* FIX doc

* FIX add class "Rights" for constant

* FIX replace with constants

* FIX missing constant

* FIX wrong check

* TODO sql error : data too long for column 'libelle'

* FIX syntax error

* FIX synax error "the return"... i'll be back

* FIX use operator with double question mark

* FIX add comment

* FIX just remplace integer with constant

* FIX remove unused code

* FIX add an example

* FIX remove the possibility to have entity = 0 (too complicated)

* FIX perms must not be empty

* FIX sql syntax error

* FIX phpstan undefined property DolibarrModules::$modules

* FIX same fix of frederic34

* Update llx_rights_def.sql

* Update DolibarrModules.class.php

* Update DolibarrModules.class.php

* Update DolibarrModules.class.php

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-04-08 11:40:02 +02:00
G-ladal
e00b5a5c6a
Add multicompany support to bookcal (+title typo) (#29251)
* Add multicompany support to bookcal (+title typo)

* Delete comments

* typos

* typos

* last code typo

* The count must match the result of select

* Update availabilities.class.php

* Update availabilities.class.php

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-04-08 11:38:00 +02:00
Laurent Destailleur
fa520942f1 Use getDolGlobalString 2024-04-08 11:31:28 +02:00
Laurent Destailleur
9427addc39 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2024-04-08 11:19:56 +02:00
Laurent Destailleur
fa7bcc35db Fix name of constant MAIN_MAIL_SMS_FROM must be MAIN_SMS_FROM 2024-04-08 11:19:43 +02:00
Jon Bendtsen
1207ce21cc
NEW: API setup delete extrafields from name and elementtype v2 (#29269)
* NEW: API delete extrafields from name and elementtype

* 401 came back, but was 403'ed again

* Fix sql injection

---------

Co-authored-by: Jon Bendtsen <xcodeauthor@jonb.dk>
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-04-08 11:11:53 +02:00
Mohamed DAOUD
fcabb3d37f
insert fields order (#29272) 2024-04-08 11:02:53 +02:00
Laurent Destailleur
0a48d1ad56 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into
develop
2024-04-08 03:38:04 +02:00
Laurent Destailleur
40815ec24b Merge branch '19.0' of git@github.com:Dolibarr/dolibarr.git into 19.0 2024-04-08 02:55:00 +02:00
Laurent Destailleur
330d20813e Fix #29028 Fix #29163 Md-theme - Login is on other icons 2024-04-08 02:54:01 +02:00
Laurent Destailleur
bc8e4c19cc Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2024-04-07 15:06:46 +02:00
MDW
4d496209ce
Qual: Phan/apstats should not be using the standard baseline (#29267)
# Qual: Phan/apstats should not be using the standard baseline

Fix to get apstats reporting on the technical debt.  The 'baseline.txt'
is for the ci regression.  The code is changed to allow a
'baseline_extended.txt' which should not be generated, only hand-crafted
2024-04-07 15:02:00 +02:00
Frédéric FRANCE
95eb1abf2e
clean code (#29268) 2024-04-07 15:01:29 +02:00
Laurent Destailleur
b5de782c6b Fix use the good HTTP code 2024-04-07 14:59:25 +02:00
Frédéric FRANCE
97240a05b0
fix phpdoc (#29266) 2024-04-07 14:17:50 +02:00
Jon Bendtsen
b586f90f59
Qual: 4 functions with hardcoded elementtype = 'member' replaced with elementtype = '' (#29256)
Co-authored-by: Jon Bendtsen <xcodeauthor@jonb.dk>
2024-04-07 12:35:40 +02:00
Laurent Destailleur
3fad52815a Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2024-04-07 12:26:49 +02:00
Laurent Destailleur
fd9475be03 Use same doc comment eveywhere. 2024-04-07 12:26:27 +02:00
Laurent Destailleur
8a5d066d90 Doc 2024-04-07 12:15:17 +02:00
PsyCrow
01d82614b6
PHP warning on updating html type extrafield (#29260)
FIX: #29229
2024-04-07 12:03:24 +02:00
MDW
bbde552979
Qual: Enable Phan Rules and update baseline (#29255)
* Fix script generating trailing whitespace

* Add nusoap as a stub for better analysis

* Qual: Return type for fetch_name_optionals_label to fix phan message

* Qual: Enable Phan Rules and update baseline

# Qual: Enable Phan Rules and update baseline

This enables all of the rules that are currently also
enabled for cti, but sets the baseline to ignore the
exceptions already present.
This will help detect exceptions added by code modifications
if the rule is not ignored for the given file.
2024-04-07 11:55:39 +02:00
Jon Bendtsen
976c05531a
Correct what API this file is for (#29257)
This is not an API for orders, but for supplier proposals
2024-04-07 11:53:20 +02:00
Laurent Destailleur
1ce6de5eb3 Removed not used var 2024-04-07 11:52:42 +02:00
Frédéric FRANCE
00b2185813
fix phpstan (#29258)
* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan
2024-04-07 11:50:26 +02:00
rqi14
bab1694cfc
Fix bug in translation (zh-cn) (#29264)
"由%s验证" is in correctly written as "由%验证s", causing failure in sprintf function in translate.class.php:743.

[client 172.23.0.4:47410] PHP Fatal error:  Uncaught ValueError: Unknown format specifie                   r "\xe9" in /var/www/html/core/class/translate.class.php:743\nStack trace:\n#0 /var/www/html/core/class/translate.class.php(743): sprintf()\n#1                    /var/www/html/core/actions_massactions.inc.php(1638): Translate->transnoentitiesnoconv()\n#2 /var/www/html/holiday/list.php(221): include('...                   ')\n#3 {main}\n  thrown in /var/www/html/core/class/translate.class.php on line 743
2024-04-07 11:48:34 +02:00
Alexandre SPANGARO
d459ee6b7b
NEW - Accountancy - Show import key if exist (#29265) 2024-04-07 11:47:23 +02:00
Laurent Destailleur
92292fb85a Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2024-04-07 11:46:31 +02:00
Laurent Destailleur
fa43938f76 Fix merge same title of security issue 2024-04-07 11:46:12 +02:00
Jon Bendtsen
3e3c4056fc
all current columns in llx_extrafields can now be seen in the json (#29253)
Co-authored-by: Jon Bendtsen <xcodeauthor@jonb.dk>
2024-04-06 17:42:03 +02:00
Frédéric FRANCE
7cf6a0821f
fix phpdoc for ismultientitymanaged (#29245)
* fix phpdoc

* fix

* fix

* fix

* fix

* fix

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-04-06 17:38:39 +02:00
Frédéric FRANCE
87b76db460
fix phpdoc (#29246) 2024-04-06 13:35:04 +02:00
Laurent Destailleur
0e5440f256 Fix bad var 2024-04-06 13:33:42 +02:00
atm-irvine
660bb7bd5c
FIX: Undefined array key default on fields (#29243) 2024-04-06 13:30:28 +02:00
Laurent Destailleur
2ca5518625 Fix use of dynamic property conf->xxx->enabled must be abandonned. 2024-04-05 16:51:27 +02:00
Florian Mortgat
8b00b89f9d
FIX: $conf must reflect enabled/disabled state of modules (#29126) 2024-04-05 16:36:02 +02:00
sonikf
a9bfe73e1a
Add recurring invoice triggers in module builder template (#29208)
* Add recurring invoice triggers

* Update interface_99_modMyModule_MyModuleTriggers.class.php

* remove BILLREC_CREATE
2024-04-05 16:34:39 +02:00
Laurent Destailleur
d0c7c7f2c7 Add CR on RSS feed of apstat 2024-04-05 15:51:41 +02:00
Laurent Destailleur
e9857d5473 Try new line in description of rss 2024-04-05 15:49:52 +02:00
Laurent Destailleur
5702c31110 Typo 2024-04-05 15:47:25 +02:00