Skip to content

Commit 6422f6a

Browse files
committed
Fix small issues with the new status links
1 parent 59cec83 commit 6422f6a

2 files changed

Lines changed: 4 additions & 5 deletions

File tree

event/listener.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -228,15 +228,12 @@ public function show_idea($event)
228228
'IDEA_POINTS' => $points,
229229
'IDEA_STATUS_ID' => $idea['idea_status'],
230230
'IDEA_STATUS_NAME' => $this->ideas->get_status_from_id($idea['idea_status']),
231-
'IDEA_STATUS_LINK' => $this->helper->route('phpbb_ideas_list_controller', array('status' => $idea['idea_status'])),
232231

233232
'IDEA_DUPLICATE' => $idea['duplicate_id'],
234233
'IDEA_RFC' => $idea['rfc_link'],
235234
'IDEA_TICKET' => $idea['ticket_id'],
236235
'IDEA_IMPLEMENTED' => $idea['implemented_version'],
237236

238-
'U_IDEA_DUPLICATE' => $this->link_helper->get_idea_link((int) $idea['duplicate_id']),
239-
240237
'S_IS_MOD' => $mod,
241238
'S_CAN_EDIT' => $mod || $own,
242239
'S_CAN_VOTE' => $can_vote,
@@ -253,6 +250,8 @@ public function show_idea($event)
253250
'U_EDIT_TICKET' => $this->link_helper->get_idea_link($idea['idea_id'], 'ticket', true),
254251
'U_REMOVE_VOTE' => $this->link_helper->get_idea_link($idea['idea_id'], 'removevote', true),
255252
'U_IDEA_VOTE' => $this->link_helper->get_idea_link($idea['idea_id'], 'vote', true),
253+
'U_IDEA_DUPLICATE' => $this->link_helper->get_idea_link($idea['duplicate_id']),
254+
'U_IDEA_STATUS_LINK'=> $this->helper->route('phpbb_ideas_list_controller', array('status' => $idea['idea_status'])),
256255
));
257256

258257
// Use Ideas breadcrumbs

styles/prosilver/template/idea_body.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@
4747
</div>
4848
</dd>
4949
<dt class="idealabel">{{ lang('STATUS') ~ lang('COLON') }}</dt>
50-
<dd class="status-dropdown-container dropdown-container">
50+
<dd class="status-dropdown-container dropdown-container dropdown-{S_CONTENT_FLOW_END}">
5151
<span class="status-badge status-{{ IDEA_STATUS_ID }}">
52-
<a href="{{ IDEA_STATUS_LINK }}" id="status-link"><i class="icon fa-fw {{ ideas_status_icon(IDEA_STATUS_ID) }}"></i>{{ IDEA_STATUS_NAME }}</a>
52+
<a href="{{ U_IDEA_STATUS_LINK }}" id="status-link"><i class="icon fa-fw {{ ideas_status_icon(IDEA_STATUS_ID) }}"></i>{{ IDEA_STATUS_NAME }}</a>
5353
{% if STATUS_ARY %}
5454
<a href="#" class="dropdown-trigger"><i class="icon fa-fw fa-caret-down"></i></a>
5555
{% endif %}

0 commit comments

Comments
 (0)