You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Contract list fails with DB_ERROR_NOSUCHTABLE on non-llx_ table prefix (hardcoded llx_contratdet) #39830
The main query correctly uses MAIN_DB_PREFIX (e.g. FROM ".MAIN_DB_PREFIX."contrat as c), but the six contratdet counting sub-queries that build the columns lower_planned_end_date, nb_initial, nb_running, nb_expired, nb_late and nb_closed use a hardcodedllx_contratdet (lines ~336-342).
Steps to reproduce
Install Dolibarr with a table prefix different from llx_ (e.g. adp_).
Fixed by #39832, merged into branch 24.0 (merge commit eaca198) and propagated to develop. Closing manually — the Fixes # keyword did not auto-close because the PR targeted the 24.0 maintenance branch rather than the default branch.
Activity
FIX Fix #39830 Wrong hardcoded 'llx_' prefix on contratdet subqueries…
milamberspace commentedon Aug 29, 2026
Fixed by #39832, merged into branch
24.0(merge commit eaca198) and propagated todevelop. Closing manually — theFixes #keyword did not auto-close because the PR targeted the24.0maintenance branch rather than the default branch.