Commit graph

151292 commits

Author SHA1 Message Date
Laurent Destailleur (aka Eldy)
0cc7d0c2ad Fix remove dead code 2025-01-09 19:35:01 +01:00
Laurent Destailleur (aka Eldy)
540d5438bc Debug v21 2025-01-09 19:35:01 +01:00
Alexandre Janniaux
81bde351d8 bookkeeping: listbyaccount: fix $num_rows warning
Fix the following warning:

	Warning: Undefined property: PgSql\Result::$num_rows in
	/var/www/html/accountancy/bookkeeping/listbyaccount.php on line 160

The warning is happening when listing the operations after the
accounting setup is done but no accounts for bank nor operations are
created.
2025-01-09 19:35:01 +01:00
Laurent Destailleur (aka Eldy)
2656b33044 Merge branch '21.0' of git@github.com:Dolibarr/dolibarr.git into 21.0 2025-01-09 19:35:01 +01:00
Laurent Destailleur (aka Eldy)
b024b95948 Fix typo 2025-01-09 19:35:01 +01:00
Laurent Destailleur
f756e3fc38 Merge pull request #32571 from fappels/21_mobulebuilder
Fix modulebuilder double NothingToSetup
2025-01-09 19:35:01 +01:00
Alexandre Janniaux
c022a530e5 expensereportsjournal: fix empty IN () SQL request
`WHERE xx IN ()` is not allowed in PostgreSQL queries, and result in
fatal errors.

We can check whether we have valid invoices before running the query,
since the query will only check whether the invoices are complete or
not.

It also fixes the following error on the development PHP output:

    Fatal error: Uncaught TypeError: pg_num_rows(): Argument #1 ($result)
    must be of type PgSql\Result, bool given in
    /var/www/html/core/db/pgsql.class.php:654 Stack trace: #0
    /var/www/html/core/db/pgsql.class.php(654): pg_num_rows(false) #1
    /var/www/html/accountancy/journal/expensereportsjournal.php(264):
    DoliDBPgsql->num_rows(false) #2 {main} thrown in
    /var/www/html/core/db/pgsql.class.php on line 654

Refs #32374 but for the expensereportsjournal page.
2025-01-09 19:35:01 +01:00
Laurent Destailleur (aka Eldy)
1def03d66f Fix regression 2025-01-09 19:35:01 +01:00
Alexandre Janniaux
740ad5b0fd purchasesjournal: fix empty IN () SQL request
`WHERE xx IN ()` is not allowed in PostgreSQL queries, and result in the
following fatal error:

	GROUP BY fk_facture_fourn
	    33 DoliDBPgsql::query SQL Error message: ERROR:  42601: syntax error at or near ")"
	LINE 10:  AND fk_facture_fourn IN ()
                                           ^

We can check whether we have valid invoices before running the query,
since the query will only check whether the invoices are complete or
not.

It also fixes the following error on the development PHP output.

	Fatal error: Uncaught TypeError: pg_num_rows(): Argument #1
	($result) must be of type PgSql\Result, bool given in
	/var/www/html/core/db/pgsql.class.php:654 Stack trace: #0
	/var/www/html/core/db/pgsql.class.php(654): pg_num_rows(false) #1
	/var/www/html/accountancy/journal/purchasesjournal.php(418):
	DoliDBPgsql->num_rows(false) #2 {main} thrown in
	/var/www/html/core/db/pgsql.class.php on line 654

Fixes #32374
2025-01-09 19:35:01 +01:00
Laurent Destailleur (aka Eldy)
1f884b84ce Debug v21 2025-01-09 19:35:01 +01:00
Laurent Destailleur (aka Eldy)
06914d9099 Debug v21 2025-01-09 19:35:01 +01:00
Laurent Destailleur (aka Eldy)
6a8e13f2cc Debug v21 2025-01-09 19:35:01 +01:00
Laurent Destailleur (aka Eldy)
494398956d Fix to allow use of payment in frame 2025-01-09 19:35:01 +01:00
Laurent Destailleur (aka Eldy)
0ffd31c1a1 Restore lines commented for test 2025-01-09 19:35:01 +01:00
Laurent Destailleur (aka Eldy)
6ba76fbfb0 Merge branch '21.0' of git@github.com:Dolibarr/dolibarr.git into 21.0 2025-01-09 19:35:01 +01:00
Laurent Destailleur (aka Eldy)
6250439309 Debug v21 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
Laurent Destailleur
9de730aeab Add more phpunit 2025-01-09 19:28:08 +01:00
Laurent Destailleur
000e2ebe54 Test 2025-01-09 19:19:28 +01:00
Maxime Kohlhaas
9535baf6d2 Fix : getRights has been replaced by loadRights in V20 2025-01-09 18:33:26 +01:00
Maxime Kohlhaas
76c98a4666 Merge branch '21.0' of github.com:Dolibarr/dolibarr into develop 2025-01-09 18:24:41 +01:00
Maxime Kohlhaas
751e21be44 Merge branch '20.0' of github.com:Dolibarr/dolibarr into 21.0 2025-01-09 18:23:38 +01:00
Frédéric France
df23a371b7
fix phpstan 2025-01-09 18:22:53 +01:00
Maxime Kohlhaas
b754994543 Merge branch '19.0' of github.com:Dolibarr/dolibarr into 20.0 2025-01-09 18:18:36 +01:00
Frédéric France
cbefb5a2d8
fix phpstan 2025-01-09 18:18:23 +01:00
Frédéric FRANCE
8c6b3291f5
Update paymentko.php 2025-01-09 18:10:18 +01:00
Maxime Kohlhaas
b32789f42a Merge branch '18.0' of github.com:Dolibarr/dolibarr into 19.0 2025-01-09 18:08:48 +01:00
Frédéric FRANCE
d37d2c0f2d
fix phpstan 2025-01-09 18:08:40 +01:00
Maxime Kohlhaas
e1a47ed0fb Merge branch '17.0' of github.com:Dolibarr/dolibarr into 18.0 2025-01-09 18:08:00 +01:00
Maxime Kohlhaas
6388f6e62a Merge branch '16.0' of github.com:Dolibarr/dolibarr into 17.0 2025-01-09 18:07:09 +01:00
Maxime Kohlhaas
e2605fbf64 Merge branch '15.0' of github.com:Dolibarr/dolibarr into 16.0 2025-01-09 18:05:33 +01:00
Maxime Kohlhaas
90c24b3d95 Merge branch '14.0' of https://github.com/Dolibarr/dolibarr into 15.0 2025-01-09 18:01:51 +01:00
uvaldenaire-opendsi
0912b3b04f fix selectcontacts param 2025-01-09 15:09:38 +01:00
Laurent Destailleur (aka Eldy)
429f5db55a Merge branch '21.0' of git@github.com:Dolibarr/dolibarr.git into develop 2025-01-09 14:09:33 +01:00
Laurent Destailleur (aka Eldy)
8fc73e0417 Add OVER on list of reserved words 2025-01-09 13:58:06 +01:00
Laurent Destailleur (aka Eldy)
bacd407cda Merge branch '21.0' of git@github.com:Dolibarr/dolibarr.git into 21.0 2025-01-09 13:54:52 +01:00
Laurent Destailleur (aka Eldy)
58e42656c0 Fix regression after a fix 2025-01-09 13:54:25 +01:00
Laurent Destailleur (aka Eldy)
0900a5e839 Fix remove dead code 2025-01-09 13:25:48 +01:00
Laurent Destailleur (aka Eldy)
7b4946b146 Merge branch '21.0' of git@github.com:Dolibarr/dolibarr.git into develop 2025-01-09 13:03:44 +01:00
Regis Houssin
90713d7773 FIX wrong alias table 2025-01-09 12:07:03 +01:00
tnegre
7e82f70c77 add case when HTML tags contain attributes 2025-01-09 11:05:45 +01:00
Regis Houssin
7618df8726 FIX remove html entities 2025-01-09 11:04:32 +01:00
atm-florian
e612bb0559 FIX 20.0 - PHP8 fatal when creating a reception if no corresponding PDF model enabled 2025-01-09 10:50:47 +01:00
Lucas Marcouiller
1b8a9c2431
Merge branch 'develop' into New-status-for-webhook 2025-01-09 10:48:18 +01:00
Laurent Destailleur
8b8e0c2bf6
Merge pull request #32578 from fappels/21_modulebuilder_backward_compat
Fix modulebuilder backward compatibility.
2025-01-09 10:40:43 +01:00
Regis Houssin
41b07d1630 FIX compatibility with externals modules 2025-01-09 10:36:48 +01:00
Florian HENRY
0295699543 fix: avoid php8 warning/error on failed notification 2025-01-09 10:21:20 +01:00
Regis Houssin
4934a335b0 FIX use transnoentities to avoid html entities 2025-01-09 10:09:23 +01:00
Florian HENRY
f0449e349f fix: php warning 2025-01-09 09:59:23 +01:00
Lucas Marcouiller
b390ca52bd
Merge branch '20.0' into Fix-fatal-error-no-bad-format-with-sprintf 2025-01-09 09:22:34 +01:00