Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 77dbe5d9

Von Tamino Steinert vor 6 Tagen hinzugefügt

  • ID 77dbe5d9f1a55a0e842843bc27f1fe52b348af43
  • Vorgänger ddbdcb72
  • Nachfolger afdf8ee0

Varianten: Fix: Sortieren nach Varianteneigenschaften

Unterschiede anzeigen:

SL/Controller/Part.pm
877 877
    variant_values   => sub { $_[0]->variant_values },
878 878
  );
879 879
  foreach my $variant_property (@{$part->variant_properties}) {
880
    my $key = 'variant_property_' . $variant_property->unique_name;
880
    my $key = 'variant_property_' . $variant_property->id;
881 881
    $sort_keys{$key} = sub {
882 882
      $_[0]->get_variant_property_value_by_unique_name($variant_property->unique_name)->value;
883 883
    }
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