Commit Graph

406 Commits

Author SHA1 Message Date
MDW
32bf8c5cd5 Qual: Fix phan notices (website) 2025-02-27 11:40:42 +01:00
ldestailleur
a9b511b715 Merge branch '21.0' of git@github.com:Dolibarr/dolibarr.git into develop 2025-02-24 14:13:14 +01:00
ldestailleur
66b22c7f28 Sync transifex 2025-02-24 10:31:32 +01:00
Laurent Destailleur (aka Eldy)
732f97d73c Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into
develop
2025-02-05 00:40:06 +01:00
MDW
f750f2c40c Qual: Fix phan notices not seen locally 2025-02-03 16:06:01 +01:00
MDW
a42bc6755c Qual: Fix PhanPluginUnknownPropertyType, PhanPossiblyUndeclaredVariable 2025-01-27 10:24:16 +01:00
Laurent Destailleur (aka Eldy)
fbe4ccd0e2 Merge branch '21.0' of git@github.com:Dolibarr/dolibarr.git into develop 2025-01-24 15:25:51 +01:00
Laurent Destailleur (aka Eldy)
48190b39de Debug v21 2025-01-23 23:26:59 +01:00
Laurent Destailleur
67521e9c4f Clean code 2025-01-20 03:54:04 +01:00
Laurent Destailleur (aka Eldy)
1d373a4ae5 Fix missing deletion of cache files 2025-01-19 21:56:54 +01:00
Laurent Destailleur (aka Eldy)
b024b95948 Fix typo 2025-01-09 19:35:01 +01:00
Laurent Destailleur (aka Eldy)
56710ce9b7 FIX CVE-2024-55227 and CVE-2024-55228 CSRF when
MAIN_RESTRICTHTML_ONLY_VALID_HTML_TIDY is
on (hidden option not on by default)
2025-01-09 19:35:01 +01:00
Mohamed DAOUD
e7b87fa1d1 fix website purge function 2025-01-07 14:02:53 +01:00
Laurent Destailleur (aka Eldy)
5af06d6614 Debug v21 2024-12-31 14:56:18 +01:00
Laurent Destailleur (aka Eldy)
f67fad1105 Debug v21 2024-12-31 14:04:14 +01:00
Laurent Destailleur (aka Eldy)
2eaa7a27a9 Debug v21 2024-12-30 19:14:44 +01:00
Laurent Destailleur (aka Eldy)
54fea85105 Fix bad balance of transaction 2024-12-30 18:25:05 +01:00
MDW
ec2a1928ba Qual: Update fields phpdoc to include fields that are defined/used in some cases
# Qual: Update fields phpdoc to include fields that are defined/used in some cases

comment, copytoclipboard, autofocusoncreated are documented and used in some cases for the
$fields definition
2024-12-05 02:36:50 +01:00
Frédéric FRANCE
15490b292f fix phpstan and fix CI (#31739)
* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan
2024-11-10 11:16:23 +01:00
MDW
67d932e7de Qual: Fix phpdoc for *ArrayMethod* args/return values (non api_) (#31719) 2024-11-08 14:43:12 +01:00
MDW
53cfbc35be Qual: Fix several phan & stan notices (#31308)
* Qual: Fix several phan & stan notices

# Qual: Fix several phan & stan notices

Several fixes in files while fixing UnknownClass notices

* Qual: Update prepare_head PHPDoc return types

# Qual: Update prepare_head PHPDoc return types

Provide detailed array return types for prepare_head functions.

* Fix new phan notice

* Better loadLangs typing and fix call to loadLangs

* Fix new issues (stats)

* Other fixes of new issues

* Qual: update phan baseline
2024-10-14 01:59:44 +02:00
Frédéric FRANCE
340bd12ee7 add php doc (#31173)
* add phpdoc

* add phpdoc

* add phpdoc

* add phpdoc

* add phpdoc

* add phpdoc

* add phpdoc
2024-09-28 11:15:38 +02:00
Frédéric FRANCE
9df2457236 fix phpstan (#31144)
* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-09-26 22:17:49 +02:00
Laurent Destailleur
c3c708880c Can fetch a page with its translation parent id. 2024-09-25 21:21:24 +02:00
MDW
115627a054 Qual: Fix PhanPluginUnknownObjectMethodCall where is the only phan notice (#30957)
* Qual: PhanPluginUnknownObjectMethodCall where it is the only phan notice

# Qual: PhanPluginUnknownObjectMethodCall where it is the only phan notice

Fix PhanPluginUnknownObjectMethodCall in files where it is the only phan notice

* Update phan baseline

* Fix $website global type in some contexts
2024-09-16 01:49:38 +02:00
Frédéric FRANCE
2a6bbf88df fix phpstan (#30944)
* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan
2024-09-13 17:40:03 +02:00
Laurent Destailleur
bf697f83eb Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into
develop
2024-09-12 21:50:31 +02:00
Laurent Destailleur
ffcaeba4c3 Fix compatibility 2024-09-12 21:47:13 +02:00
Laurent Destailleur
9505325b6d Debug v20 - Fix sql 2024-09-12 16:36:32 +02:00
Laurent Destailleur
e94423fd3a Debug v20 - Fix sql 2024-09-12 16:36:03 +02:00
Laurent Destailleur
e4227c6913 Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into develop 2024-09-12 16:30:57 +02:00
Laurent Destailleur
e735d17dd2 Debug v20 - Fix security and compatibility 2024-09-12 16:30:13 +02:00
Frédéric FRANCE
fba71ab043 fix phpstan (#30893)
* fix phpstan

* fix phpstan

* fix phpstan
2024-09-10 01:02:56 +02:00
Laurent Destailleur
e38a25d5cb Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into develop 2024-09-09 18:17:09 +02:00
Laurent Destailleur
c9d39df93c Fix message after clone 2024-09-09 18:16:42 +02:00
MDW
00e2ed5529 Qual: 🛟 Fix CI Issues ($db to $this->db / LDAP typing / Win-ci cache md5sum) (#30774)
* Qual: 🛟 Fix reference to $db with $this->db

# Qual: reference to $db with $this->db

$db was undeclared, use $this->db.

* Qual: Fix LDAP typing

* Fix suspected issue with environment max size and md5sum working on limited files

* Correct typing hint for email_date
2024-08-29 09:24:33 +02:00
MDW
e6630cd7d1 Qual: Improve dol_syslog (#30782)
* Qual: 🛟 Fix reference to $db with $this->db

# Qual: reference to $db with $this->db

$db was undeclared, use $this->db.

* Fix suspected issue with environment max size and md5sum working on limited files

* Qual: Fix LDAP typing

* Qual: Improve dol_syslog

# Qual: Improve dol_syslog

The changes:
- Keep the log file open for less time (better for concurrency);
- Open the log file only to append data (no internal preparation for writing);
- Avoids re-assigning a constant array;
- Add PHPDoc information about the array parameters and return values;
- May reduce the computation of global settings;
- Result in a slight performance improvement.
2024-08-29 08:49:27 +02:00
Laurent Destailleur
0feb44cd9e Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into develop 2024-08-26 21:09:21 +02:00
Laurent Destailleur
7778bc4b01 Fix switch page status. Fix clone page. 2024-08-26 20:51:42 +02:00
Mohamed DAOUD
a0f7977821 New add website purge function (#30730)
* Add website purge function

* Update website.class.php

* Update website.class.php

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-08-23 15:04:29 +02:00
MDW
ca414de526 Qual: Fix $fields related notices with Phan (#30704)
* Qual: Typing hints/ignore directives for phan notices

* Update field typing
2024-08-21 13:23:35 +02:00
MDW
54880f92cd Qual: Fix PhanTypeMismatchProperty and some other phan notices (#30542)
* Qual: Fix PhanTypeMismatchProperty and some other phan notices

* Qual: Phan fixes for BOM

* Phan - fix fields

* fixup! Qual: Phan fixes for BOM

* Fix phpstan double array keys for syslog

* Fix $fields phpdoc

* Fix phan typing issues with intermediate var and ??

* Fix phan typing issue with ?? operator

* Ignore htdocs/install/install.forced.php for git

* Qual: Revert to original code, ignore notice

When changing the method to avoid one notice type, another one
appears.  So simply ignoring this error.

* Qual: Revert to original code, ignore notice

When changing the method to avoid one notice type, another one
appears.  So simply ignoring this error.

* Update baseline

* Qual: Phan fixes for BOM

* fixup! Qual: Phan fixes for BOM

* Fix phpstan double array keys for syslog

* Qual: Revert to original code, ignore notice

When changing the method to avoid one notice type, another one
appears.  So simply ignoring this error.

* Ignore PhanTypeSuspiciousNonTraversableForeach to allow integration

* Fix typing hints (phpstan)

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-08-15 17:05:00 +02:00
Frédéric FRANCE
4b275dc148 add phpdoc (#30208)
* add phpdoc

* add phpdoc

* add phpdoc

* add phpdoc

* clean phpdoc
2024-06-30 19:39:01 +02:00
lamrani abdelwadoud
6f40e309f1 Fix display all news of all website (#30146)
* Fix display all news of all website

* fix type of variable

* Update page-sample-news.html

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-06-26 17:12:31 +02:00
Mohamed DAOUD
8774331c6d update overwriteTemplate (#29680) 2024-05-15 17:30:50 +02:00
Mohamed DAOUD
8e1a1a51b3 Add a parameter to dolCopyDir function to exclude copying archive files (#29681)
* exclude copying archive files

* Update files.lib.php

* Update files.lib.php

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-05-15 15:37:20 +02:00
Laurent Destailleur
2ca045de72 Fix deletion of a website 2024-05-12 22:04:46 +02:00
Laurent Destailleur
b2b11fd1a5 Clean website templates 2024-05-12 20:51:58 +02:00
Laurent Destailleur
0163cc6278 Debug export website 2024-05-12 20:27:03 +02:00
lamrani abdelwadoud
373ee15009 New function to display 2 sitweb export function in a popup (#29592)
* new function to display 2 sitweb export function in a popup

* Update website.lang

* update function overwriteTemplate for handle the path to export website

* update function for check the relative/absolute path

* add infoBull for explain to user where it will exported

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-05-05 01:15:32 +02:00