6.0.0-beta1
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
10/19/25
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#1224] Bad "New Story" link in Block/news
*
Your Email Address
*
Spam protection
Enter the letters below:
.__..__ .___. .. . | |[__)[__ |_/ \ / |__|| | | \ \/
Comment
> the "New story" link in the heading of the News Block didn't set the > > channel_id attributes. > > > > Patch proposal : > > Index: news.php > > =================================================================== > > RCS file: /repository/jonah/lib/Block/news.php,v > > retrieving revision 1.27 > > diff -u -B -b -w -r1.27 news.php > > --- news.php 3 Jan 2005 14:35:07 -0000 1.27 > > +++ news.php 21 Jan 2005 17:27:59 -0000 > > @@ -80,7 +80,9 @@ > > > > if ($channel['channel_type'] == JONAH_INTERNAL_CHANNEL && > > > Jonah::checkPermissions(Jonah::typeToPermName($channel['channel_type']), > > PERMS_EDIT)) { > > - $html .= ' :: ' . > Horde::link(Horde::applicationUrl('stories/edit.php', > > true), _("New Story"), 'smallheader') . Horde::img('editstory.png', > _("New Story"), > > 'align="middle"') . ' ' . _("New Story") . '</a>'; > > + $url = Horde::applicationUrl('stories/edit.php', true); > > + $url = Util::addParameter($url,array('channel_id' => > > $channel['channel_id'])); > > + $html .= ' :: ' . Horde::link($url, _("New Story"), > 'smallheader') . > > Horde::img('editstory.png', _("New Story"), 'align="middle"') . ' ' . > _("New Story") . > > '</a>'; > > } > > > > return $html; > > > >
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