Commit graph

153774 commits

Author SHA1 Message Date
Laurent Destailleur
eb6d15cea5 Debug v24 - Removed useless duplicated files 2026-05-04 11:21:57 +02:00
Laurent Destailleur
ca806bda83 Can add a hidden message MAIN_FORCE_UPGRADE_MESSAGE on home page 2026-05-04 10:47:14 +02:00
Laurent Destailleur
b0dca0eb46 Clean code 2026-05-04 09:54:31 +02:00
Laurent Destailleur
126f013cb5 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2026-05-03 23:33:11 +02:00
Laurent Destailleur
2b69fc1bd9 Enhance look of combo for email templates 2026-05-03 23:32:58 +02:00
Laurent Destailleur
006a1550f2 Trans 2026-05-03 22:35:58 +02:00
Alexandre Janniaux
163c51ae31
NEW debugbar: Add backtrace capture for database query failures (#36612)
* debugbar: Add backtrace capture for database query failures

Implements backtrace forwarding to capture and display backtraces when
database queries fail, making it easier for developers to identify the
source of database errors.

Backtrace are captured in TraceableDB::endTracing() when queries fail
using debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS) and stored to be
fowarded to the DolQueryCollector that will expose it to the debugbar
integration.

Because of that, the backtrace is now captured at the correct location,
ie. when the query fails, rather than when the error is retrieved,
ensuring it shows the actual application code that triggered the
problematic query.

This is particularly useful for debugging MySQL to PostgreSQL
compatibility issues, module development and maintenance, and quickly
identifying query origins during development. In particular, paired with
the list and time profiling of each request, it will allow finding the
location where queries are not properly optimized.

Before this patch, it was possible to try and find snippets from the
queries but because queries are generated at runtime, it was tedious and
could lead to the wrong location.

Related to #34050

* debugbar: Add SQL query backtrace

Extends the debugbar SQL widget with backtrace display capabilities.

To keep vendor files pristine, a custom widget (TracingSQLQueriesWidget)
extends the vendor SQLQueriesWidget using DOM manipulation to inject
Dolibarr-specific features after parent render completes.

The widget intercepts the parent's data binding callback via
wrapDataBinding() to enhance rendered queries with backtrace buttons.
This patch pattern depends on php-debugbar internals but might break if
the vendor API changes, without breaking the rendering done by
php-debugbar.

A tracing toggle icon in the status bar allows switching between
tracing failed queries only (default, minimal overhead) and tracing
all queries. The setting persists via cookie (debugbar_full_tracing)
which the PHP backend reads to decide whether to capture backtraces.

Custom styles in widgets.css is for the tracing state (eye/eye-slash
icons) and so as to format the backtrace display within a frame and
using monospace font.

Closes #34050
2026-05-03 16:26:33 +02:00
Joachim Kueter
9af8e8037a
New #38051: Hook for calculating number of working days in a date range (#38052)
* Add user-aware hook to num_open_day

* Pass fk_user to num_open_day in holiday module
2026-05-01 23:21:59 +02:00
Frédéric FRANCE
9cf66200b9
avoid silent fail (#38048) 2026-05-01 23:13:13 +02:00
Laurent Destailleur
d2d48a5d36
Reorganize security reporting guidelines in SECURITY.md
Clarified installation requirements and security configurations for valid vulnerability reports.
2026-05-01 23:06:58 +02:00
Laurent Destailleur
be52ec4a33 Doc 2026-04-30 16:20:17 +02:00
Laurent Destailleur
1172677b01 Merge branch '23.0' of git@github.com:Dolibarr/dolibarr.git into develop 2026-04-30 14:57:57 +02:00
Laurent Destailleur
58b1828c66 Fix option STRIPE_USER_ACCOUNT_FOR_ACTIONS was unreachable 2026-04-30 14:48:36 +02:00
Laurent Destailleur
2126f2315e SEC: Advisory for bbbbb56c64 - Better
sanitization param for GETPOST of htmlheader of website page
2026-04-30 14:42:21 +02:00
Laurent Destailleur
e7ea0db00b Fix option notdisable din select_user 2026-04-30 13:35:06 +02:00
Laurent Destailleur
959f8238c4 Debug select of users 2026-04-30 13:32:36 +02:00
Laurent Destailleur
3dcd77b7eb Clean code 2026-04-30 13:12:14 +02:00
Laurent Destailleur
67dde86c03 Debug v24 2026-04-30 13:11:33 +02:00
Laurent Destailleur
19b21a6346 Debug v24 2026-04-30 12:34:15 +02:00
Laurent Destailleur
9e7043d39b Debug v24 2026-04-30 12:06:28 +02:00
Laurent Destailleur
8340597bb8 Clean code 2026-04-30 04:01:58 +02:00
Laurent Destailleur
0655ba9136 Clean code 2026-04-30 02:55:24 +02:00
Laurent Destailleur
c454b51ced Clean code 2026-04-30 02:16:26 +02:00
Laurent Destailleur
b1d1b1589c Clean code 2026-04-29 19:34:02 +02:00
Laurent Destailleur
18a40d1e90 WIP LNE 2026-04-29 17:12:52 +02:00
Laurent Destailleur
9a76a58d4f Fix error management 2026-04-29 16:30:37 +02:00
Laurent Destailleur
8b06f08318 Doc 2026-04-29 02:48:13 +02:00
Laurent Destailleur
bbbbb56c64 Better sanitization param for GETPOST of htmlheader of website page 2026-04-29 02:38:59 +02:00
Laurent Destailleur
273e41cbaf Field too small 2026-04-29 02:23:07 +02:00
Laurent Destailleur
b10645cb5a FIX missing "blob:" in the assistant for CSP editor. 2026-04-29 02:12:12 +02:00
Laurent Destailleur
8bc5464979 Fix ACE editor content was not read on webpage creation. 2026-04-29 02:09:39 +02:00
Laurent Destailleur
7989c723b4 Fix image of layout 2026-04-29 01:19:32 +02:00
Laurent Destailleur
a300fcb8d9 Fix leak test missing on permission website->writephpwhen editing
htmlheader - Reported by Ahmed Alshammari
2026-04-29 00:29:04 +02:00
Laurent Destailleur
8ab67e674b Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2026-04-28 23:47:24 +02:00
Laurent Destailleur
5fbb3cee1d Add missing url into RSS of agenda event 2026-04-28 23:47:13 +02:00
Laurent Destailleur
b07051116b Fix use a better uid in agenda RSS 2026-04-28 23:33:42 +02:00
Jon Bendtsen
9b6b33747e
NEW Thirdparty bank account asks for bank country, state, currency and status (#38031)
* NEW Thirdparty bank account asks for bank country, state, currency and status

* edit thirdparty bank account will update the changes, but not read from object before showing

* Modification of bank account is now possible, but state selection is a multi step process

* at least show a nice dropdown with some statusses when edit bank account

* bank account status is now preserved during edit

* Pre-commit fix

* phpstan fixes

* PHAN variable order fix

* making sure the SQL variable is defined

---------

Co-authored-by: Jon Bendtsen <jonbendtsen@jonb.dk>
2026-04-28 14:28:16 +02:00
Noé Cendrier
2155790c56
FIX: hooks work better with context, and broken SQL requests (#38030) 2026-04-28 12:22:53 +02:00
Laurent Destailleur
cea010df03 Date 2026-04-28 11:50:09 +02:00
Laurent Destailleur
6f5cb7e418 Automated merge from 23.0 to develop 2026-04-28 11:30:13 +02:00
Laurent Destailleur
6891c9a398 Automated merge from 22.0 to 23.0 by tool pullmerge.sh 2026-04-28 11:30:10 +02:00
Laurent Destailleur
3c89b7062b Fix CI 2026-04-28 11:29:42 +02:00
Laurent Destailleur
13ca9e441e Merge branch '23.0' of git@github.com:Dolibarr/dolibarr.git into develop 2026-04-28 11:28:05 +02:00
Laurent Destailleur
1c6ae609b7 Automated merge from 22.0 to 23.0 by tool pullmerge.sh 2026-04-28 11:27:34 +02:00
Laurent Destailleur
8a878e8d28 Automated merge from 21.0 to 22.0 by tool pullmerge.sh 2026-04-28 11:24:23 +02:00
Laurent Destailleur
1e6b3dd871 Merge branch '22.0' of git@github.com:Dolibarr/dolibarr.git into 22.0 2026-04-28 11:23:15 +02:00
Laurent Destailleur
dfe6f5f5cb Fix CI 2026-04-28 11:22:58 +02:00
Joe Biboche
905b52579d
Fix: #38011 wrong line seq when generating invoice from order (#38029)
Avoid reordering invoice lines in the case it's been created from an order

Co-authored-by: Mathis GAVILLON <mathis.gavillon@ik.me>
2026-04-28 11:17:08 +02:00
Laurent Destailleur
028931e25a Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2026-04-28 11:16:59 +02:00
Laurent Destailleur
3e15f78df6 Clean code 2026-04-28 11:16:41 +02:00