diff options
author | Byron Jones <bjones@mozilla.com> | 2012-11-22 15:25:07 +0100 |
---|---|---|
committer | Byron Jones <bjones@mozilla.com> | 2012-11-22 15:25:07 +0100 |
commit | ed17a711ebddc980f89e8290632f566c37bf762f (patch) | |
tree | 19491f770ce31dd1416e481f4c4c30a7ffd39841 /extensions/Example | |
parent | 468c576588450202d96998d2378949e08406361e (diff) | |
download | bugzilla-ed17a711ebddc980f89e8290632f566c37bf762f.tar.gz bugzilla-ed17a711ebddc980f89e8290632f566c37bf762f.tar.xz |
Bug 780820: Allows for multiple custom search criteria to match one field
Diffstat (limited to 'extensions/Example')
-rw-r--r-- | extensions/Example/Extension.pm | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/extensions/Example/Extension.pm b/extensions/Example/Extension.pm index 8eef19a6e..d7b892cfa 100644 --- a/extensions/Example/Extension.pm +++ b/extensions/Example/Extension.pm @@ -724,10 +724,12 @@ sub _check_short_desc { my $invocant = shift; my $value = $invocant->$original(@_); if ($value !~ /example/i) { - # Uncomment this line to make Bugzilla throw an error every time + # Use this line to make Bugzilla throw an error every time # you try to file a bug or update a bug without the word "example" # in the summary. - #ThrowUserError('example_short_desc_invalid'); + if (0) { + ThrowUserError('example_short_desc_invalid'); + } } return $value; } |