diff options
author | Gervase Markham <gerv@gerv.net> | 2011-01-27 12:55:58 +0000 |
---|---|---|
committer | Gervase Markham <gerv@mozilla.org> | 2011-01-27 12:55:58 +0000 |
commit | e237b7e7583c6e7ab35840050d8bd9ce71ac5a6f (patch) | |
tree | 2332fb520622212b28758a620f5548a3388b89e5 /extensions/Example | |
parent | 2a5c9e0c4541e0c995f5b53a26e0a9ae9195c031 (diff) | |
download | bugs-e237b7e7583c6e7ab35840050d8bd9ce71ac5a6f.tar bugs-e237b7e7583c6e7ab35840050d8bd9ce71ac5a6f.tar.gz bugs-e237b7e7583c6e7ab35840050d8bd9ce71ac5a6f.tar.bz2 bugs-e237b7e7583c6e7ab35840050d8bd9ce71ac5a6f.tar.xz bugs-e237b7e7583c6e7ab35840050d8bd9ce71ac5a6f.zip |
Allow extensions to alter quicksearch terms and search format. r=mkanat.
https://bugzilla.mozilla.org/show_bug.cgi?id=621878
Diffstat (limited to 'extensions/Example')
-rw-r--r-- | extensions/Example/Extension.pm | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/extensions/Example/Extension.pm b/extensions/Example/Extension.pm index 14bf6df87..f56416559 100644 --- a/extensions/Example/Extension.pm +++ b/extensions/Example/Extension.pm @@ -649,6 +649,14 @@ sub product_end_of_create { } } +sub quicksearch_map { + my ($self, $args) = @_; + my $map = $args->{'map'}; + + # This demonstrates adding a shorter alias for a long custom field name. + $map->{'impact'} = $map->{'cf_long_field_name_for_impact_field'}; +} + sub sanitycheck_check { my ($self, $args) = @_; |