diff options
author | Dave Lawrence <dlawrence@mozilla.com> | 2012-11-14 17:25:01 +0100 |
---|---|---|
committer | Dave Lawrence <dlawrence@mozilla.com> | 2012-11-14 17:25:01 +0100 |
commit | e4e3c1b860c47976dc7314ec26d336caa59bebd0 (patch) | |
tree | 5161f7edb5d9b9046d7b98af3d000f37880f389b /Bugzilla.pm | |
parent | 38fa3fab5ae996c6116b55fe87e60ea6b53b2923 (diff) | |
parent | 442d6df4683b7219738bb799a3650dd8b9c8431f (diff) | |
download | bugzilla-e4e3c1b860c47976dc7314ec26d336caa59bebd0.tar.gz bugzilla-e4e3c1b860c47976dc7314ec26d336caa59bebd0.tar.xz |
merged with bugzilla/4.2
Diffstat (limited to 'Bugzilla.pm')
-rw-r--r-- | Bugzilla.pm | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Bugzilla.pm b/Bugzilla.pm index b61062a9f..9d69cd65c 100644 --- a/Bugzilla.pm +++ b/Bugzilla.pm @@ -593,7 +593,8 @@ sub fields { } } - return $do_by_name ? \%requested : [values %requested]; + return $do_by_name ? \%requested + : [sort { $a->sortkey <=> $b->sortkey || $a->name cmp $b->name } values %requested]; } sub active_custom_fields { @@ -865,7 +866,7 @@ in a hashref: =item C<by_name> If false (or not specified), this method will return an arrayref of -the requested fields. The order of the returned fields is random. +the requested fields. If true, this method will return a hashref of fields, where the keys are field names and the valules are L<Bugzilla::Field> objects. |