dolibarr/htdocs/product
Pichinov-Jose efe2b3d3d4
NEW Product/service creation in a dialog popup from the add-line block ('@FIXME Not working yet') (#39307)
* FIX Product/service creation in a dialog popup from the add-line block (marked '@FIXME Not working yet')

product/card.php is now popup-aware: it reads dol_openinpopup (added to
the URL by dolButtonToOpenUrlInDialogPopup), propagates it into the
creation form, closes properly on Cancel (buttonsSaveCancel), and after a
successful creation reloads the parent page on backtopage (with the new
id substituted) instead of navigating inside the iframe.

In the add-line block, the popup buttons (MAIN_FEATURES_LEVEL >= 2) no
more pass the callback 'jsRefreshProductCombo' (a function that was never
defined, and passed in the jsonopen slot instead of jsonclose, see the
phan suppress) : the child page now drives the parent reload itself. The
backtopage now includes the object id, so combined with the 'idprod_ID'
preselection fix, the created product can be autoselected in the combo.

Tested end-to-end on a real 23.0.3 database.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

* Add copyright

* FIX phpcs: indentation of hidden field

* chore: retrigger CI (lock check setup canceled by GitHub infra)

---------

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
2026-07-31 18:48:34 +02:00
..
admin Debug v24 2026-06-06 18:18:49 +02:00
ajax Automated merge from 21.0 to 22.0 by tool pullmerge.sh 2026-06-09 00:04:20 +02:00
canvas Qual: Fix 'SqlInjection' notices (#39225) 2026-07-20 02:52:07 +02:00
class Qual: Fix 'SqlInjection' notices (#39223) 2026-07-20 02:51:42 +02:00
composition Qual: Fix 'SqlInjection' notices (#39216) 2026-07-23 19:06:39 +02:00
dynamic_price Fix bad translation string 2025-11-12 17:34:53 +01:00
inventory Qual/Sec: Use db->sanitize instead of db->escape when not quoted, fix some quoting (#39286) 2026-07-27 13:00:33 +02:00
stats FIX #38981 product/stats/facture.php fatal error when invoice module is disabled (#39049) 2026-07-07 00:27:55 +02:00
stock Fix deletion must not use the glob by default. 2026-07-29 13:20:28 +02:00
agenda.php Fix CI 2026-02-16 20:25:07 +01:00
card.php NEW Product/service creation in a dialog popup from the add-line block ('@FIXME Not working yet') (#39307) 2026-07-31 18:48:34 +02:00
contact.php NEW Add contact tab on product service (#35914) 2025-11-05 22:50:38 +01:00
document.php New : complete quick memo context for products (#37911) 2026-04-19 15:57:01 +02:00
index.php Fix option to set max short list 2026-07-04 13:33:17 +02:00
list.php NEW add method confirmProduced in MOs API (#39324) 2026-07-30 18:22:44 +02:00
messaging.php Automated merge from 23.0 to develop 2026-07-23 17:06:43 +02:00
note.php
price.php Qual: Fix french comments and improve detector (#39026) 2026-07-01 12:26:51 +02:00
price_suppliers.php Fix use of MAIN_CHECKBOX_LEFT_COLUMN on all pages. This close #37987 2026-04-24 11:48:01 +02:00
reassort.php Qual: Fix 'SqlInjection' notices (#39225) 2026-07-20 02:52:07 +02:00
reassortlot.php Qual/Sec: Use db->sanitize instead of db->escape when not quoted, fix some quoting (#39286) 2026-07-27 13:00:33 +02:00
traduction.php avoid multiple trigger call (#38353) 2026-05-22 08:05:32 +02:00