Revision dd500963
Von Tamino Steinert vor 10 Monaten hinzugefügt
SL/Controller/Part.pm | ||
---|---|---|
870 | 870 |
variant_values => sub { $_[0]->variant_values }, |
871 | 871 |
); |
872 | 872 |
foreach my $variant_property (@{$part->variant_properties}) { |
873 |
my $key = 'variant_property_' . $variant_property->unique_name;
|
|
873 |
my $key = 'variant_property_' . $variant_property->id;
|
|
874 | 874 |
$sort_keys{$key} = sub { |
875 | 875 |
$_[0]->get_variant_property_value_by_unique_name($variant_property->unique_name)->value; |
876 | 876 |
} |
templates/design40_webpages/part/_parent_variant.html | ||
---|---|---|
29 | 29 |
</a> |
30 | 30 |
</th> |
31 | 31 |
[% FOREACH variant_property = SELF.part.variant_properties %] |
32 |
<th id="variant_variant_property_[% variant_property.unique_name %]_header_id">
|
|
33 |
<a href='#' onClick='javascript:kivi.Part.reorder_variants("variant_property_[% variant_property.unique_name %]")'>
|
|
32 |
<th id="variant_variant_property_[% variant_property.id %]_header_id">
|
|
33 |
<a href='#' onClick='javascript:kivi.Part.reorder_variants("variant_property_[% variant_property.id %]")'>
|
|
34 | 34 |
[% variant_property.displayable_name %] |
35 | 35 |
</a> |
36 | 36 |
</th> |
Auch abrufbar als: Unified diff
Varianten: Fix: Sortieren nach Varianteneigenschaften