6.0.0-beta1
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
7/23/25
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#10381] horde and imp apps-menus get mixed up in dynamic view
*
Your Email Address
*
Spam protection
Enter the letters below:
.___._..___.. .__. [__ | _/ | [__] [____|_./__.|___| |
Comment
> Unfortunately, this is expected. array_replace_recursive() does the > following: > > $a1 = array('a', 'b', 'c'); > $a2 = array('d'); > > array_replace_recursive($a1, $a2) = array('d', 'b', 'c'); > > What we really want in this case is actually just: array('d'). In > other words, we want the value of $conf['menu']['apps'] in imp to > completely overwrite the value of $conf['menu']['apps'] from horde. > This is because these arrays are nothing more than lists. If an > array is a list (as opposed to a hash map), it should be directly > replaced. > > However, PHP does not provide an API to determine if an array is > currently a list or a hash map. We could fake around it by doing > something like checking if every key is a number and, if so, we would > treat that array as a list and overwrite it with an applications > list. Or we have to specially treat the menu/apps config option > within Horde_Registry.
Attachment
Watch this ticket
N
ew Ticket
M
y Tickets
S
earch
Q
uery Builder
R
eports
Saved Queries
Open Bugs
Bugs waiting for Feedback
Open Bugs in Releases
Open Enhancements
Enhancements waiting for Feedback
Bugs with Patches
Enhancements with Patches
Release Showstoppers
Stalled Tickets
New Tickets
Horde 5 Showstoppers