Commit graph

155260 commits

Author SHA1 Message Date
Laurent Destailleur
675b5bf1bc Doc 2026-07-15 00:59:45 +02:00
Laurent Destailleur
a326afccdc Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2026-07-15 00:56:54 +02:00
Laurent Destailleur
f267603a7c Fix mailmap file 2026-07-15 00:56:44 +02:00
github-actions[bot]
e8227696b4
PHPStan > Update baseline (#39174)
Co-authored-by: Dolibot <dolibarr-bot@users.noreply.github.com>
2026-07-15 00:39:16 +02:00
MDW
03319e88c9
Qual: Improve some CodingPhpTest notices with line numbers (#39176)
* Qual: Improve a notice with line numbers

* Qual: Fix PHPStan ci when no files are to be analyzed
2026-07-15 00:38:28 +02:00
Charlène Benke
a366cee392
create categorie_fichinter-fichinter not run (#39177) 2026-07-15 00:37:05 +02:00
Charlène Benke
10492c5c81
Add 'ficheinter' to module security tests (#39180) 2026-07-15 00:36:38 +02:00
Charlène Benke
d8a61e5200
Add 'notnull' attribute to fk_statut field (#39179)
generate warning error on list
2026-07-15 00:36:11 +02:00
Laurent Destailleur
45c13ab4ef Doc 2026-07-15 00:06:18 +02:00
Laurent Destailleur
29f4ddcdf1 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2026-07-15 00:03:29 +02:00
Laurent Destailleur
9d5c3a33b9 Doc 2026-07-15 00:03:17 +02:00
Laurent Destailleur
eb998bbc67 Update agents setup files 2026-07-14 23:57:05 +02:00
Zakaria Boushaba
c8ba7f4696
FIX #37775 Improve extra fields merge when creating invoice from template (#39173)
* FIX Invoice creation from template ignores extra fields set in form

* Fix Strict comparison using === between mixed and null will always evaluate to false

---------

Co-authored-by: Zakaria Boushaba <z.boushaba@vold.africa>
2026-07-14 13:51:21 +02:00
MDW
9ecec7b248
Qual: Update logToCheckStyle (now extracts PHP Lint error msg) (#39169)
# Qual: Update logToCheckStyle (now extracts PHP Lint error msg)

logToCheckStyle  was updated to extract PHP Lint (php -l) errors.
So they will show in the summary report and as annotations.
2026-07-14 13:50:39 +02:00
MDW
ff2adb5b84
Qual: Update Phan baseline.txt (#39170) 2026-07-14 13:49:56 +02:00
Laurent Destailleur
66daa3ffed Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2026-07-14 00:47:15 +02:00
MDW
7c43affbdb
fix: Remove extra closing parenthesis in user note permission check (#39150)
Removed an extra closing parenthesis in the user note permission check to fix a syntax error. Also added a new copyright line for 2026 and updated the parameters array formatting for consistency.
2026-07-14 00:43:23 +02:00
Laurent Destailleur
a8ec8b3cdf Trans 2026-07-13 23:45:41 +02:00
Nathan
b2bba40457
fix: save member extrafields from subscriptions tab (#39095)
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2026-07-13 17:22:25 +02:00
Nathan
68c0415512
fix: delete takepos supplement lines with parent (#39094)
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2026-07-13 16:49:55 +02:00
minimexat
4a87b0a265
FIX: #37711 add stock movement batch index (#39124)
* FIX: #37711 add stock movement batch index

* Update ChangeLog

---------

Co-authored-by: f-hoedl <hoefla14@htl-kaindorf.ac.at>
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2026-07-13 16:47:49 +02:00
Nathan
57a47746c7
FIX #39084 Use service ref label on service creation (#39097) 2026-07-13 16:14:22 +02:00
minimexat
1f217c564c
FIX: enforce document upload access checks (#39125)
* FIX: enforce document upload access checks

* Update ChangeLog for version 24.0.0

---------

Co-authored-by: f-hoedl <hoefla14@htl-kaindorf.ac.at>
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2026-07-13 16:13:51 +02:00
Jam Balaya
6f0bc87209
Qual: Fix PHPStan always true/false errors breaking develop CI (#39114)
The full PHPStan analysis that runs on push to develop (and *.0 branches)
reported 5 new 'always true/false' errors, not caught by the per-PR diff
analysis and not yet in the baseline:

- htdocs/document.php: is_numeric() on the int-cast $entity is always true;
  the redundant check is removed.
- htdocs/salaries/stats/index.php: $mode is hardcoded to 'statistics', so the
  three view-switch button state comparisons are constant; replaced with their
  literal results (1/1/2) and removed the now-unused $mode.
- htdocs/theme/md/style.css.php: method_exists($menumanager, 'showmenu') is
  always true since $menumanager is a MenuManager; the redundant check is removed.

Behaviour is unchanged.
2026-07-13 16:11:51 +02:00
Jam Balaya
67aadf2cba
FIX: undefined variables from wrong variable names (#39115)
Several pages read a variable that is never defined on that page (copy/paste
from another page), so PHPStan level 10 flags 'Variable $x might not be
defined' and PHP 8 emits an undefined-variable warning with a null value:

- reception/card.php: $reception -> $object (matches the 10 other builddoc
  blocks in the same file; otherwise the output PDF language is wrong)
- loan/payment/card.php: $object->id -> $id (page uses $id; matches the
  adjacent enabled-button line)
- opensurvey/card.php: ConfirmRemovalOfPoll uses $id -> $numsondage
  (otherwise the confirmation message placeholder is empty)
- opensurvey/results.php: guard $expiredate with !empty() (never defined on
  this page; still falls back to $object->date_fin)
- projet/card.php: guard $morecss with !empty() (never defined here)

No behaviour change beyond removing the undefined-variable reads.

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2026-07-13 16:08:10 +02:00
Jam Balaya
ae463f2234
FIX: stocktransfer addcontact reports false success without a valid object (#39118)
In htdocs/product/stock/stocktransfer/stocktransfer_contact.php the
'addcontact' action assigns $result only inside 'if ($object->id > 0)', but
the success test 'if ($result >= 0)' runs unconditionally. On a POST with no
id/ref the object is not fetched ($object->id == 0), so $result is undefined
and 'null >= 0' evaluates to true, redirecting as if the contact was added.

Initialize $result = -1 at the start of the block so the missing-object case
takes the error branch instead of a false-success redirect. PHPStan level 10
also flagged 'Variable $result might not be defined' here.
2026-07-13 16:07:05 +02:00
minimexat
9b5229ef3a
FIX: #39063 prevent self-edit users updating other notes (#39123)
* FIX: #39063 prevent self-edit users updating other notes

* Update note.php

* Update ChangeLog

---------

Co-authored-by: f-hoedl <hoefla14@htl-kaindorf.ac.at>
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2026-07-13 15:59:46 +02:00
minimexat
6eb81e0166
FIX: check document list read permissions (#39131)
* FIX: Check document list read permissions

* Update ChangeLog

---------

Co-authored-by: f-hoedl <hoefla14@htl-kaindorf.ac.at>
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2026-07-13 15:50:21 +02:00
minimexat
946b19276d
FIX: escape cron setup key (#39127)
* FIX: escape cron setup key

* Update ChangeLog

---------

Co-authored-by: f-hoedl <hoefla14@htl-kaindorf.ac.at>
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2026-07-13 15:49:39 +02:00
minimexat
55c48e1fba
FIX: scope login API token reset to user row (#39132)
* FIX: Scope login API token reset to user row

* Update ChangeLog

---------

Co-authored-by: f-hoedl <hoefla14@htl-kaindorf.ac.at>
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2026-07-13 15:48:37 +02:00
minimexat
b2a2c99553
FIX: #39053 prevent non-admin users deleting admin accounts (#39119)
Co-authored-by: f-hoedl <hoefla14@htl-kaindorf.ac.at>
2026-07-13 15:48:01 +02:00
Laurent Destailleur
d01495d6a7 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2026-07-13 15:45:07 +02:00
Laurent Destailleur
94517cbda6 Remove field never used 2026-07-13 15:44:57 +02:00
minimexat
a0e15bf915
FIX: encode backtourl in Google OAuth callback URL (#39128)
* FIX: Encode backtourl in Google OAuth callback URL

* Update ChangeLog

---------

Co-authored-by: f-hoedl <hoefla14@htl-kaindorf.ac.at>
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2026-07-13 15:42:17 +02:00
minimexat
c95e337c40
FIX: Require delete permission for email templates API (#39134)
Co-authored-by: f-hoedl <hoefla14@htl-kaindorf.ac.at>
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2026-07-13 14:59:15 +02:00
minimexat
bd9e8a55e8
FIX: Delete establishment by object rowid (#39135)
Co-authored-by: f-hoedl <hoefla14@htl-kaindorf.ac.at>
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2026-07-13 14:29:42 +02:00
minimexat
0442259154
FIX: restrict establishment setup API to admin users (#39137)
* FIX: Restrict establishment setup API to admins

* Update ChangeLog

---------

Co-authored-by: f-hoedl <hoefla14@htl-kaindorf.ac.at>
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2026-07-13 14:29:21 +02:00
minimexat
9e709619d9
FIX: correct security event entity SQL (#39141)
* FIX: Correct security event entity SQL

* Update ChangeLog

---------

Co-authored-by: f-hoedl <hoefla14@htl-kaindorf.ac.at>
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2026-07-13 14:28:27 +02:00
Laurent Destailleur
3e95b7057c Fix bad picto on not allowed left menu 2026-07-13 13:39:25 +02:00
Laurent Destailleur
1d5acc6268 FIX bad dol_eval test when method is wrong 2026-07-13 13:17:41 +02:00
Laurent Destailleur
1b4f92b543 Fix warning 2026-07-13 12:13:35 +02:00
Laurent Destailleur
22c3b23d56 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2026-07-13 12:07:16 +02:00
minimexat
9105fa4813
FIX: escape session list fields (#39129)
* FIX: Escape session list fields

* FIX: Cast nullable session fields before escaping

* Update ChangeLog with new features and fixes

---------

Co-authored-by: f-hoedl <hoefla14@htl-kaindorf.ac.at>
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2026-07-13 12:05:08 +02:00
Laurent Destailleur
f96a4af9f3 Doc 2026-07-13 12:04:47 +02:00
minimexat
6b71832a44
FIX: escape cron command attributes (#39126)
* FIX: escape cron command attributes

* Update ChangeLog

---------

Co-authored-by: f-hoedl <hoefla14@htl-kaindorf.ac.at>
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2026-07-13 12:02:09 +02:00
minimexat
049851bc31
FIX: require invoice right for order mass invoice action (#39139)
* FIX: Require invoice right for order mass invoice

* Update list.php

* Update ChangeLog

---------

Co-authored-by: f-hoedl <hoefla14@htl-kaindorf.ac.at>
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2026-07-13 12:01:16 +02:00
Laurent Destailleur
0726bf945a Typo 2026-07-13 11:59:49 +02:00
Laurent Destailleur
d1e679633f Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2026-07-13 11:48:52 +02:00
Laurent Destailleur
2cd4aa3abb Doc 2026-07-13 11:48:42 +02:00
minimexat
95701131bc
FIX: use generic online signature token fallback (#39138)
* FIX: Use generic online signature token fallback

* FIX: Avoid nullable source in signature token lookup

* FIX: Initialize online signature message

* FIX: Print online signature error directly

---------

Co-authored-by: f-hoedl <hoefla14@htl-kaindorf.ac.at>
2026-07-13 11:45:45 +02:00