From ed17a711ebddc980f89e8290632f566c37bf762f Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Thu, 22 Nov 2012 22:25:07 +0800 Subject: Bug 780820: Allows for multiple custom search criteria to match one field --- extensions/Example/Extension.pm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'extensions') 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; } -- cgit v1.2.3-24-g4f1b