Skip to content

Commit

Permalink
Display source options in alphabetical order.
Browse files Browse the repository at this point in the history
The Source select list when creating or editing a story or media document now
lists sources in alphabetical order. Reported by Michael Herring
[#138 state:resolved].
  • Loading branch information
theory committed Mar 10, 2010
1 parent 8f7c854 commit 2659f18
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 28 deletions.
15 changes: 8 additions & 7 deletions comp/widgets/media_prof/edit_meta.html
Expand Up @@ -70,13 +70,14 @@
key => 'description',
&>
<& '/widgets/select_object/select_object.mc',
object => 'source',
name => "$widget|source__id",
field => 'source_name',
selected => $media->get_source__id,
indent => 0,
useTable => 1,
disp => "Source"
object => 'source',
name => "$widget|source__id",
field => 'source_name',
sort_field => 'source_name',
selected => $media->get_source__id,
indent => 0,
useTable => 1,
disp => "Source"
&>

% unless (ENABLE_CATEGORY_BROWSER) {
Expand Down
13 changes: 7 additions & 6 deletions comp/widgets/media_prof/edit_new.html
Expand Up @@ -43,12 +43,13 @@
&>
% }
<& /widgets/select_object/select_object.mc,
disp => 'Source',
object => 'source',
name => "$widget|source__id",
field => 'source_name',
selected => $sel_source,
useTable => 1,
disp => 'Source',
object => 'source',
name => "$widget|source__id",
field => 'source_name',
sort_field => 'source_name',
selected => $sel_source,
useTable => 1,
&>
<& /widgets/select_object/select_object.mc,
object => 'category',
Expand Down
17 changes: 9 additions & 8 deletions comp/widgets/story_prof/edit_meta.html
Expand Up @@ -79,14 +79,15 @@

<div class="editmeta">
<& '/widgets/select_object/select_object.mc',
object => 'source',
name => "$widget|source__id",
field => 'source_name',
selected => $story->get_source__id,
indent => 0,
useTable => 1,
disp => "Source",
exclude => sub { !chk_authz($_[0], READ, 1) },
object => 'source',
name => "$widget|source__id",
field => 'source_name',
sort_field => 'source_name',
selected => $story->get_source__id,
indent => 0,
useTable => 1,
disp => "Source",
exclude => sub { !chk_authz($_[0], READ, 1) },
&>
<& '/widgets/profile/displayFormElement.mc',
objref => $story,
Expand Down
15 changes: 8 additions & 7 deletions comp/widgets/story_prof/edit_new.html
Expand Up @@ -42,13 +42,14 @@
);

$m->comp( '/widgets/select_object/select_object.mc',
disp => 'Source',
object => 'source',
name => "$widget|source__id",
field => 'source_name',
localize => 0,
useTable => 1,
exclude => $excl_sub,
disp => 'Source',
object => 'source',
name => "$widget|source__id",
field => 'source_name',
sort_field => 'source_name',
localize => 0,
useTable => 1,
exclude => $excl_sub,
);

$m->comp( '/widgets/select_object/select_object.mc',
Expand Down
6 changes: 6 additions & 0 deletions lib/Bric/Changes.pod
Expand Up @@ -28,6 +28,12 @@ The installer no longer requires that L<Term::ReadPassword> be installed from
the CPAN before it continues. It will use it if it finds it, but if not
substitutes a simple implementation that does the trick (Bug #136). [David]

=item *

The Source select list when creating or editing a story or media document now
lists sources in alphabetical order. Reported by Michael Herring (Bug # 138).
[David]

=back

=head2 Bug Fixes
Expand Down

0 comments on commit 2659f18

Please sign in to comment.