Make a clean install of j4-dev
Edit Admin Menu (Administrator Menu module)
The Preset displayed in the Choose Preset
field should be Preset - Joomla Main Menu
But it is Preset - Content Dashboard
, although it is indeed the Joomla Main Menu
which is used.
If one does not care and just modify something else than the Preset and save, one loses the admin menu in back-end...
As the sql to create this administrator mod_menu does not specify the Preset in the params
(0, 'mod_menu', 'module', 'mod_menu', '', 1, 1, 1, 0, 1, '', '', 0, NULL, 0, 0),
My guess is that the field displays the default alpha ordered Preset which is Content Dashboard
Any idea?
Labels |
Added:
?
|
It is important though that the default be used only once and not modified after each J4 upgrade.
@richard67
I found a solution by adding a default to the field.
<field
name="preset"
type="menuPreset"
default="default" // Added
label="MOD_MENU_FIELD_PRESET_LABEL"
description="MOD_MENU_FIELD_PRESET_DESC"
showon="menutype:*"
/>
What do you think?
Looks good.
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2020-04-11 09:48:31 |
Closed_By | ⇒ | infograf768 |
Maybe it is set in script.php but not in the right way? Or maybe it should be set in script.php?