Revision 57850df7
Von Cem Aydin vor fast 2 Jahren hinzugefügt
SL/Presenter/Tag.pm | ||
---|---|---|
172 | 172 |
} elsif (ref($default_coll) eq 'HASH') { |
173 | 173 |
%selected = %{ $default_coll }; |
174 | 174 |
|
175 |
} elsif ($default_coll) { |
|
176 |
$default_coll = [ $default_coll ] unless 'ARRAY' eq ref $default_coll; |
|
175 | 177 |
|
176 | 178 |
%selected = $default_val_key ? map({ ($normalize_entry->('value', $_, undef, $default_val_key) => 1) } @{ $default_coll }) |
177 | 179 |
: map({ ($_ => 1) } @{ $default_coll }); |
... | ... | |
857 | 859 |
|
858 | 860 |
The following are used directly from each level: |
859 | 861 |
|
860 |
=back |
|
861 |
|
|
862 |
=over 4 |
|
862 |
=over 12 |
|
863 | 863 |
|
864 | 864 |
=item I<name> is deleted from level attributes. |
865 | 865 |
The I<name> is used for the for the name of the 'select' tag. |
... | ... | |
880 | 880 |
|
881 | 881 |
=item I<default> is used to find the default level object. |
882 | 882 |
|
883 |
=item I<default_key> names the key for the default feld of level object. Is
|
|
883 |
=tiem I<default_key> names the key for the default feld of level object. Is
|
|
884 | 884 |
ignored if I<default> is set. |
885 | 885 |
|
886 |
=back |
|
887 |
|
|
886 | 888 |
|
887 |
=item I<\@collection> is used for the level object of level 1. The objects of the next
|
|
889 |
<\@collection> is used for the level object of level 1. The objects of the next |
|
888 | 890 |
level are taken from the previous level via the <object_key>. On each level the |
889 | 891 |
objects must be a hash reference or a blessed reference. |
890 | 892 |
|
Auch abrufbar als: Unified diff
Revert "POD Syntax"
This reverts commit b79b80d3043909dc3551595b1fc71bba73f529d1.
Behebt #553.