Commit graph

910 commits

Author SHA1 Message Date
w3houde
a0b43c261b
Fix #36782 #34780 strip the 'hidden' class when toggling the attach-file form (#38762)
* Fix #36510 advance pg sequence after forced-rowid dictionary insert (#38741)

Dictionary entry creation in admin/dict.php computes $newid = MAX(rowid)+1
in PHP and INSERTs with that rowid explicitly. On PostgreSQL the matching
serial sequence (<table>_rowid_seq) is never told about the manually
chosen value, so the next auto-increment insert (the next dictionary
entry, or any other code path that pulls from the same sequence) hits a
duplicate-key error mis-reported to the user as
'already existing record'.

Bump the sequence with setval(pg_get_serial_sequence(...), GREATEST(MAX,1))
right after a successful forced-rowid INSERT, gated on $db->type == 'pgsql'
so MySQL/MariaDB behaviour is unchanged.

Diagnosis by @hregis (#36510).

Signed-off-by: Dolicraft <contact@dolicraft.com>
Co-authored-by: Dolicraft <contact@dolicraft.com>

* Fix #35661 drop duplicated ref segment in notify pdf path (#38746)

The fixed-target branch of Notify::send built the PDF path as
"$dir_output/$ref/$ref.pdf" while $dir_output already includes the
get_exdir(...) ref subdirectory. The double ref segment made
dol_is_file always fail and the PDF was never attached when a
notification was routed to a fixed email address. The matching block
just above for user/group targets has always used the correct
"$dir_output/$ref.pdf" form.

Drop the extra ref segment so both branches produce the same path.

Signed-off-by: Dolicraft <contact@dolicraft.com>
Co-authored-by: Dolicraft <contact@dolicraft.com>

* Fix #38614 align extrafield help-row position with create form (#38753)

In admin/extrafields the create page renders the Help tooltip row right
after Totalizable, before the Css rows. The edit page renders it after
all Css rows, so jumping from create to edit visually moves the field
without any meaningful reason.

Move the <tr class="help"> row in admin_extrafields_edit.tpl.php to the
same position as in admin_extrafields_add.tpl.php (after Totalizable,
before Css edit). Pure markup ordering, no logic change.

Signed-off-by: Dolicraft <contact@dolicraft.com>
Co-authored-by: Dolicraft <contact@dolicraft.com>

* Fix #36782 #34780 strip the 'hidden' class when toggling the attach-file form

The button that opens the new-file form does jQuery('.divattachnewfile').toggle()
to show/hide it. The element is initially printed with class='hidden' (line 1443).
jQuery toggle() switches the inline display property but leaves the class
in place. When a theme stylesheet ships a '.hidden { display: none !important }'
rule, the inline 'display: block' set by toggle() is overridden and the form
stays invisible while the file picker still opens.

Call removeClass('hidden') alongside toggle() so the inline display wins on
the first open.

Signed-off-by: Dolicraft <contact@dolicraft.com>

---------

Signed-off-by: Dolicraft <contact@dolicraft.com>
Co-authored-by: Dolicraft <contact@dolicraft.com>
2026-06-13 01:39:29 +02:00
Laurent Destailleur
1df98e3ca9 Debug v24 2026-05-11 13:18:31 +02:00
Laurent Destailleur
0a1cba2486 Merge branch '23.0' of git@github.com:Dolibarr/dolibarr.git into develop 2026-05-07 13:37:39 +02:00
Laurent Destailleur
16f5965983 Merge branch '22.0' of git@github.com:Dolibarr/dolibarr.git into 23.0 2026-05-07 13:31:30 +02:00
Sylvain Legrand
b9507a980c
Fix: scope file picker click to the just-shown attach-new-file form (#38114)
In FormFile::list_of_documents(), when the user clicks the "+ New" button to reveal the upload form (showhideaddbutton), the JS handler triggers jQuery("input[type='file']").click(). This selector matches every <input type="file"> on the page, opening the OS file picker once per match. Users with multiple file inputs in the DOM (e.g. another hidden upload form, an editor's media browser, modules with their own attachers) have to dismiss the file dialog several times before being able to drag-drop or browse normally.

Fix: scope the selector to the form that was just shown:

- jQuery("input[type='file']").click();
+ jQuery(".divattachnewfile input[type='file']").first().click();
No regression on pages with a single .divattachnewfile. Reproduces on any *document.php tab where a hidden second <input type="file"> is present.
2026-05-07 10:04:41 +02:00
Laurent Destailleur
6eb27efd71 Fix public interface must not show AI assistant. 2026-04-27 18:23:07 +02:00
Laurent Destailleur
f188ad64eb Picto for shared doc 2026-03-12 17:11:05 +01:00
Laurent Destailleur
ed868d6dd3 FIX #37072 2026-02-12 18:56:00 +01:00
Laurent Destailleur
7828311250 Fix export pb in br 2025-12-02 15:04:14 +01:00
ldestailleur
d0aa0df4f6 Merge branch '21.0' of git@github.com:Dolibarr/dolibarr.git into 22.0 2025-08-06 12:37:00 +02:00
Marc
1dbe6e579a
FIX #34843 (#34875)
* FIX #34564

* FIX #34843

* Fix code formating

* Fix php-stan

* Code improvement

* Correcting formating

* Last correction (i hope!)
2025-08-06 12:12:09 +02:00
ldestailleur
030b3d3df5 Merge branch '21.0' of git@github.com:Dolibarr/dolibarr.git into 22.0 2025-07-27 13:58:13 +02:00
ldestailleur
8e5efbb3ae css 2025-07-27 13:54:02 +02:00
ldestailleur
095905670a Remove BlockUI js plugin. Replaced with few js/css lines. 2025-05-06 19:15:13 +02:00
ldestailleur
849409f150 CSS 2025-04-25 20:02:10 +02:00
ldestailleur
ef95c311a7 Merge branch '21.0' of git@github.com:Dolibarr/dolibarr.git into develop 2025-04-03 21:09:46 +02:00
lvessiller-opendsi
bae01a9872
NEW const PREVIEW_PICTO_ON_LEFT_OF_NAME for icon to preview documents (#33519)
* NEW const PREVIEW_ON_LEFT for icon to preview documents

* Rename const to PREVIEW_PICTO_ON_LEFT_OF_NAME
2025-04-03 11:28:14 +02:00
VIAL-GOUTEYRON Quentin
3ad05c2dde
FIX: Incorrect entity used when downloading a document generated in another entity (#33565)
* FIX : Wrong entity to download document

* MODIFICATION : Remplacement de l'ID d'entité par l'objet dans les fonctions de gestion des fichiers pour une meilleure cohérence.

* Update files.lib.php

* Update files.lib.php

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2025-04-01 23:13:31 +02:00
ldestailleur
3e9ba9f9fc QUAL: Must use img_picto instead of hard coded html 2025-03-27 17:45:04 +01:00
ldestailleur
59233693c1 Fix phan 2025-03-19 17:28:28 +01:00
HENRY Florian
8f2ad4bf87
NEW: Add Shared links on links in attachements (#33459)
* NEW: add share option for URL link in attachement

* NEW: fix #33456

* NEW: shared link on links

* NEW: shared link on links

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2025-03-19 16:04:11 +01:00
MDW
d64298f6c1
Qual: Fix phan notices (htdocs/compta) (#33427) 2025-03-12 20:41:50 +01:00
ldestailleur
3658bc20b6 Merge branch '21.0' of git@github.com:Dolibarr/dolibarr.git into develop 2025-03-09 22:29:21 +01:00
ldestailleur
401ae7b6c3 Fix css on smartphone 2025-03-09 21:42:07 +01:00
ldestailleur
f8f9a81f9b Merge branch '21.0' of git@github.com:Dolibarr/dolibarr.git into develop 2025-03-03 17:00:48 +01:00
ldestailleur
6d2de0a16f Fix remove $conf->global 2025-03-03 15:13:43 +01:00
Laurent Destailleur (aka Eldy)
9bc2a3a6bd Merge branch '21.0' of git@github.com:Dolibarr/dolibarr.git into develop 2025-02-11 22:24:47 +01:00
Laurent Destailleur (aka Eldy)
56f5232358 Debug v21 2025-02-11 22:21:59 +01:00
MDW
c9bedf8fe2
Qual: Fix phan notices (stock-1) 2025-02-10 11:32:05 +01:00
Laurent Destailleur (aka Eldy)
ab4eb1f834 WIP Dir statement in ECM 2025-02-04 18:46:20 +01:00
MDW
7150af31dc
Fix Phan notices introduced since 30/12/2024 2025-01-27 13:24:29 +01:00
Laurent Destailleur (aka Eldy)
58b9fac4b5 Fix sort on natural order 2025-01-23 23:41:51 +01:00
Laurent Destailleur
5433a5642d Merge branch '22.0' of git@github.com:Dolibarr/dolibarr.git into 23.0 2026-02-16 21:21:13 +01:00
Laurent Destailleur
f8123ebc64 CSS 2026-01-20 23:49:36 +01:00
Anthony Berton
d5a6f92e0d Ajout d'une div responsive autour du formulaire pour améliorer la mise en page (#36825)
Co-authored-by: Anthony Berton <anthony.berton@bb2a.fr>
2026-01-08 18:56:32 +01:00
Laurent Destailleur
5bcd5db58f Merge branch '22.0' of git@github.com:Dolibarr/dolibarr.git into develop 2025-12-02 15:11:40 +01:00
Frédéric France
2afb048dfb
add more 2025-11-28 19:57:10 +01:00
Frédéric France
4a42d5d8bc
add more 2025-11-28 19:52:10 +01:00
Frédéric France
123af65139
add more 2025-11-28 19:42:56 +01:00
Frédéric FRANCE
991b867047
add another 2025-11-28 15:26:10 +01:00
Frédéric FRANCE
cb4ed97867
Merge remote-tracking branch 'origin/patch-11' into patch-11 2025-11-28 15:09:21 +01:00
Frédéric FRANCE
1807269202
add another 2025-11-28 15:05:13 +01:00
Frédéric France
4f3e23516f
add ficheuinter 2025-11-27 21:27:59 +01:00
Frédéric France
dc85a6756b
add more 2025-11-27 20:55:45 +01:00
Frédéric FRANCE
9ffc224897
add project 2025-11-27 14:53:18 +01:00
Frédéric FRANCE
f757b08f97
add project 2025-11-27 14:50:14 +01:00
Frédéric FRANCE
889a716aee
add modulepart for direct print capabilities 2025-11-27 12:49:00 +01:00
Laurent Destailleur
99d44d9cf8 spellcheck war 2025-11-21 12:38:53 +01:00
Laurent Destailleur
dd39b91e5a Fix ci 2025-11-19 11:40:02 +01:00
Laurent Destailleur
75d1f27730 Fix CI 2025-11-19 11:16:24 +01:00