Bug 25041: Restore #ASKED anchor in suggestions table
On commit 4494e8ba6c
Bug 23594: Batch modification for itemtypes on suggestions page
The anchors of the tabs on suggestion.pl has been replaced with
tab_$count instead of the status code.
There was a need at the time, but I cannot remember it.
I restored the previous behavior, and did not find any regressions.
Test plan:
1 - Add several suggestions to Koha
2 - Set them in different status, leaving at least one pending
3 - Go to home page, note it shows count of pending
4 - Click the link on home page
5 - It takes you to correct tab
Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
parent
bad8c7089a
commit
2f2db163bd
|
|
@ -514,7 +514,7 @@
|
|||
<ul class="ui-tabs-nav">
|
||||
[% FOREACH suggestion IN suggestions %]
|
||||
<li>
|
||||
<a href="#tab_[% loop.count | uri %]">
|
||||
<a href="#[% suggestion.suggestiontype | uri %]">
|
||||
[% IF ( suggestion.suggestiontypelabel ) %]
|
||||
[% IF (suggestion.suggestiontypelabel == "Pending") %]Pending
|
||||
[% ELSIF (suggestion.suggestiontypelabel == "Accepted") %]Accepted
|
||||
|
|
@ -538,8 +538,8 @@
|
|||
[% END %]
|
||||
|
||||
[% FOREACH suggestion IN suggestions %]
|
||||
<div id="tab_[% loop.count | html %]">
|
||||
<form class="update_suggestions" name="f" method="post" action="/cgi-bin/koha/suggestion/suggestion.pl#tab_[% loop.count | html %]">
|
||||
<div id="[% suggestion.suggestiontype | html %]">
|
||||
<form class="update_suggestions" name="f" method="post" action="/cgi-bin/koha/suggestion/suggestion.pl#[% suggestion.suggestiontype| uri %]">
|
||||
|
||||
[% IF ( suggestion.suggestions_loop ) %]
|
||||
<p><a class="checkall" href="#">Check all</a> | <a class="uncheckall" href="#">Uncheck all</a></p>
|
||||
|
|
|
|||
Loading…
Reference in New Issue