summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Fearn <jfearn@redhat.com>2022-10-26 15:04:01 +1000
committerJeff Fearn <jfearn@redhat.com>2022-10-26 15:04:01 +1000
commita3c4c22af085c52f2133f97bec369852822edf75 (patch)
tree16d039d911813ea3687083474d34bf25d024933f
parentRelease Version 5.0.4-rh77 (diff)
downloadbugzilla-a3c4c22af085c52f2133f97bec369852822edf75.tar.gz
bugzilla-a3c4c22af085c52f2133f97bec369852822edf75.tar.bz2
bugzilla-a3c4c22af085c52f2133f97bec369852822edf75.zip
Bug 1926042 - warn about backlogs being removed from teams when they are linked to componentsRelease-5.0.4-rh77
Actually use fast count function. Change-Id: Ic61d60ccd7d67362b5055a7f3f26ef84847a1c83
-rw-r--r--extensions/AgileTools/lib/Backlog.pm2
-rw-r--r--extensions/RedHat/template/en/default/hook/pages/release-notes-updates_top.html.tmpl2
2 files changed, 2 insertions, 2 deletions
diff --git a/extensions/AgileTools/lib/Backlog.pm b/extensions/AgileTools/lib/Backlog.pm
index f8d320ff1..a9edd84ff 100644
--- a/extensions/AgileTools/lib/Backlog.pm
+++ b/extensions/AgileTools/lib/Backlog.pm
@@ -130,7 +130,7 @@ sub set_team_id {
my $cur_team_id = $self->team_id;
# Don't allow backlogs with bugs to be abandoned
- if (@{$self->pool->bugs()}
+ if ($self->pool->bug_count()
&& (!$new_team_id || ($cur_team_id && $cur_team_id != $new_team_id)))
{
ThrowUserError('agile_backlog_has_bugs');
diff --git a/extensions/RedHat/template/en/default/hook/pages/release-notes-updates_top.html.tmpl b/extensions/RedHat/template/en/default/hook/pages/release-notes-updates_top.html.tmpl
index 7bac28692..45582ebf9 100644
--- a/extensions/RedHat/template/en/default/hook/pages/release-notes-updates_top.html.tmpl
+++ b/extensions/RedHat/template/en/default/hook/pages/release-notes-updates_top.html.tmpl
@@ -3,7 +3,7 @@
<li><a href="https://bugzilla.redhat.com/1136014">Bug 1136014</a> query.cgi: a blank row is added to Custom Search each time the user clicks Back on buglist.cgi</li>
<li><a href="https://bugzilla.redhat.com/1376322">Bug 1376322</a> Add hook in Bugzilla::WebService::Bug::_bug_to_hash</li>
<li><a href="https://bugzilla.redhat.com/1892238">Bug 1892238</a> quick search does not find a bug which contains a specific string</li>
- <li><a href="https://bugzilla.redhat.com/1926042">Bug 1926042</a> warn about backlogs being removed from teams when they are linked to component</li>
+ <li><a href="https://bugzilla.redhat.com/1653639">Bug 1653639</a> The response of REST API is wrong for invalid flag value </li>
<li><a href="https://bugzilla.redhat.com/1926042">Bug 1926042</a> warn about backlogs being removed from teams when they are linked to components</li>
<li><a href="https://bugzilla.redhat.com/2086708">Bug 2086708</a> incorrect/nonsense ITR values in cloned/reopened RHEL BZs</li>
<li><a href="https://bugzilla.redhat.com/2124725">Bug 2124725</a> Support more complex validation</li>