6.0.0-beta6
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
4/9/26
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#5086] foreach with references in the tasklists.inc template
*
Your Email Address
*
Spam protection
Enter the letters below:
.___. ,. .._..__. [__ \./ |_/ | | | [___ | | \_|_|__\
Comment
> Here's the root of the problem: Let's say you have an array of > references to Horde_Share objects named $shares. When you now process > the array via > > > > foreach ($shares as $key => $share) { > > $share->get('name') > > } > > > > it creates a copy of the share object if you access it like this. > > > > Here's the proper fix: > > > > foreach(array_keys($shares) as $id) { > > $shares[$id]->get('name'); > > } > > > > That fixed the share renaming (among other reference fixes) in mnemo, > which are going to be submitted soon. It's also the way Turba > accesses the shares. > >
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