diff options
author | 2021-08-20 13:07:40 +1000 | |
---|---|---|
committer | 2021-08-20 13:07:40 +1000 | |
commit | 4a2b67476638d1350c97188fcfe3cedab385a2d7 (patch) | |
tree | b467c4e6f1918d703e5f19096f29c2a55bf495b1 /Bugzilla/Bug.pm | |
parent | Bug 1991345 - Allow deletion of queued jobs on report page (diff) | |
download | bugzilla-4a2b67476638d1350c97188fcfe3cedab385a2d7.tar.gz bugzilla-4a2b67476638d1350c97188fcfe3cedab385a2d7.tar.bz2 bugzilla-4a2b67476638d1350c97188fcfe3cedab385a2d7.zip |
Bug 1920323 - Trying to set see_also gives wrong message
Added message for when see_also is disabled.
Change-Id: Id6b2df476f96c38f1b0a5d79365876800e2aa27e
Diffstat (limited to 'Bugzilla/Bug.pm')
-rw-r--r-- | Bugzilla/Bug.pm | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Bugzilla/Bug.pm b/Bugzilla/Bug.pm index 36f545b72..e97f75205 100644 --- a/Bugzilla/Bug.pm +++ b/Bugzilla/Bug.pm @@ -4063,6 +4063,12 @@ sub remove_group { sub add_see_also { my ($self, $input, $skip_recursion) = @_; + # REDHAT EXTENSION START 1920323 + unless (Bugzilla->params->{"use_see_also"}) { + ThrowUserError('see_also_disabled'); + } + # REDHAT EXTENSION END 1920323 + # This is needed by xt/search.t. $input = $input->name if blessed($input); |