Commit graph

140788 commits

Author SHA1 Message Date
Laurent Destailleur (aka Eldy)
640a4e5f0c Avoid error 2025-01-12 03:22:47 +01:00
Laurent Destailleur (aka Eldy)
013687b6da Update logo 2025-01-12 03:20:22 +01:00
Laurent Destailleur (aka Eldy)
915e6c8632 Add missing data and escape html 2025-01-11 14:53:29 +01:00
Laurent Destailleur (aka Eldy)
0a47582428 Fix lang after html in website pages 2025-01-11 14:14:05 +01:00
Laurent Destailleur (aka Eldy)
62aa865982 Trans 2025-01-11 13:00:58 +01:00
Laurent Destailleur (aka Eldy)
2e697f8baf Merge branch '21.0' of git@github.com:Dolibarr/dolibarr.git into 21.0 2025-01-11 12:29:46 +01:00
Laurent Destailleur (aka Eldy)
22a5a1566b Debug v21 2025-01-11 12:29:24 +01:00
Laurent Destailleur
6064007618 Merge branch '21.0' of git@github.com:Dolibarr/dolibarr.git into 21.0 2025-01-11 02:00:30 +01:00
Laurent Destailleur
fa16f56b32 Fix warning phpstan 2025-01-11 02:00:17 +01:00
Laurent Destailleur
ddf53fb82c
Merge pull request #32606 from fappels/21_fix_php_warning
Fix php warning
2025-01-11 01:57:18 +01:00
Laurent Destailleur
2e0950da3d Fix setup of const 2025-01-11 00:30:05 +01:00
Laurent Destailleur
434c138c8f Merge branch '21.0' of git@github.com:Dolibarr/dolibarr.git into 21.0 2025-01-11 00:06:22 +01:00
Laurent Destailleur
714df27e95 Debug v21 2025-01-11 00:05:58 +01:00
Laurent Destailleur
a3c3780ae3
Merge branch '21.0' into 21_fix_php_warning 2025-01-10 23:30:16 +01:00
Laurent Destailleur
390eed21d2
Merge pull request #32608 from aspangaro/21p3
Translate step of accountancy closure
2025-01-10 23:25:07 +01:00
Laurent Destailleur (aka Eldy)
5cca1c1dd6 Doc 2025-01-10 19:02:52 +01:00
Laurent Destailleur (aka Eldy)
6635b06392 Fix vardump 2025-01-10 18:49:25 +01:00
Laurent Destailleur (aka Eldy)
79808c660b Debug v21 - Fix missing the pass_encoding table 2025-01-10 18:48:20 +01:00
Laurent Destailleur (aka Eldy)
b5f32ed30a Merge branch '21.0' of git@github.com:Dolibarr/dolibarr.git into 21.0 2025-01-10 18:25:11 +01:00
Laurent Destailleur (aka Eldy)
d33e2748f1 Debug v21 - Fix for pb with different encoding rules 2025-01-10 18:24:50 +01:00
Alexandre SPANGARO
148deff4ee Fix php-stan 2025-01-10 14:02:13 +01:00
Francis Appels
4c8f915476 Merge remote-tracking branch 'Dolibarr/21.0' into 21_fix_php_warning 2025-01-10 13:31:54 +01:00
Laurent Destailleur
137876e4cc
Merge pull request #32601 from frederic34/patch-10
fix phpstan
2025-01-10 12:00:30 +01:00
Alexandre SPANGARO
ad249cec23 Translate step of accountancy closure 2025-01-10 05:26:52 +01:00
Laurent Destailleur (aka Eldy)
4527a0eb31 Debug v21 2025-01-09 22:15:24 +01:00
Francis Appels
d1051db856 Fix php warning 2025-01-09 20:16:46 +01:00
Laurent Destailleur
e05acff8e0 Merge branch '21.0' of git@github.com:Dolibarr/dolibarr.git into 21.0 2025-01-09 19:39:04 +01:00
Laurent Destailleur
b53477752a Merge branch '21.0' of git@github.com:Dolibarr/dolibarr.git into 21.0 2025-01-09 19:38:56 +01:00
Maxime Kohlhaas
8cb41a5bea Merge branch '20.0' of github.com:Dolibarr/dolibarr into 21.0 2025-01-09 19:38:56 +01:00
Laurent Destailleur (aka Eldy)
d5a36eee15 Add OVER on list of reserved words 2025-01-09 19:38:56 +01:00
Laurent Destailleur (aka Eldy)
36262d201c Merge branch '21.0' of git@github.com:Dolibarr/dolibarr.git into 21.0 2025-01-09 19:38:56 +01:00
Laurent Destailleur (aka Eldy)
87436c8798 Fix regression after a fix 2025-01-09 19:38:56 +01:00
Laurent Destailleur
1a9fbbbbea Merge pull request #32578 from fappels/21_modulebuilder_backward_compat
Fix modulebuilder backward compatibility.
2025-01-09 19:38:56 +01:00
Laurent Destailleur (aka Eldy)
4e042a71d2 Fix remove dead code 2025-01-09 19:38:56 +01:00
Laurent Destailleur (aka Eldy)
781456e174 Debug v21 2025-01-09 19:38:56 +01:00
Alexandre Janniaux
d38f41871c 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:38:56 +01:00
Laurent Destailleur (aka Eldy)
87de003941 Merge branch '21.0' of git@github.com:Dolibarr/dolibarr.git into 21.0 2025-01-09 19:38:56 +01:00
Laurent Destailleur (aka Eldy)
350df4ff92 Fix typo 2025-01-09 19:38:56 +01:00
Laurent Destailleur
02dfc35c85 Merge pull request #32571 from fappels/21_mobulebuilder
Fix modulebuilder double NothingToSetup
2025-01-09 19:38:56 +01:00
Alexandre Janniaux
f895c8a2ff 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:38:56 +01:00
Laurent Destailleur (aka Eldy)
08c0ad2c13 Fix regression 2025-01-09 19:38:56 +01:00
Alexandre Janniaux
7e1c87e3ab 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:38:56 +01:00
Laurent Destailleur (aka Eldy)
d819742620 Debug v21 2025-01-09 19:38:56 +01:00
Laurent Destailleur (aka Eldy)
ba53390040 Debug v21 2025-01-09 19:38:56 +01:00
Laurent Destailleur (aka Eldy)
6e384a6d3a Debug v21 2025-01-09 19:38:56 +01:00
Laurent Destailleur (aka Eldy)
c04b6fca78 Fix to allow use of payment in frame 2025-01-09 19:38:56 +01:00
Laurent Destailleur (aka Eldy)
48bbcaaa12 Restore lines commented for test 2025-01-09 19:38:56 +01:00
Laurent Destailleur (aka Eldy)
5b603b86d6 Merge branch '21.0' of git@github.com:Dolibarr/dolibarr.git into 21.0 2025-01-09 19:38:56 +01:00
Laurent Destailleur (aka Eldy)
bd5a9a9f6f Debug v21 2025-01-09 19:38:56 +01:00
Laurent Destailleur (aka Eldy)
9aa24d9d9a 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:38:56 +01:00