Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 1ddcd7f5

Von Tamino Steinert vor 5 Tagen hinzugefügt

  • ID 1ddcd7f591a061958cd9b2964da99b186cad0308
  • Vorgänger e01884e2

Varianten: Beim Speichern Eigenschaften gegen Ausprägung prüfen

Unterschiede anzeigen:

SL/DB/Part.pm
159 159
sub _before_check_variant_property_values {
160 160
  my ($self) = @_;
161 161
  if ($self->is_variant) {
162
    my @property_value_ids = sort map {$_->id} $self->variant_property_values;
163 162
    my $parent_variant = $self->parent_variant;
163

  
164
    my @variant_property_ids = sort map {$_->id} $self->variant_property_values;
165
    my @parent_variant_property_ids = sort map {$_->id} @{$parent_variant->variant_properties};
166
    if ("@variant_property_ids" ne "@parent_variant_property_ids") {
167
      die t8("Given variant_property_values doesn't match the variant_properties of parent_variant part.");
168
    }
169

  
170
    my @property_value_ids = sort map {$_->id} $self->variant_property_values;
164 171
    my $other_variants = $parent_variant->variants;
165 172
    foreach my $variant (@$other_variants) {
166 173
      next if $variant->id == $self->id;
locale/de/all
1904 1904
  'Get shoporders'              => 'Shopbestellungen holen und bearbeiten',
1905 1905
  'Git revision: #1, #2 #3'     => 'Git-Revision: #1, #2 #3',
1906 1906
  'Given Name'                  => 'Vorname',
1907
  'Given variant_property_values doesn\'t match the variant_properties of parent_variant part.' => 'Gegebene Varianten-Ausprägunen stimmen nicht mit den Varianten-Eigenschaften des Stammartikel überein.',
1907 1908
  'Gldate'                      => 'Erfassungsdatum',
1908 1909
  'Global Attachments'          => 'Allgemeine Dokumentenanhänge',
1909 1910
  'Global Record BCC'           => 'Globale BCC-Adresse',
locale/en/all
1903 1903
  'Get shoporders'              => 'Get and process orders from a web shop',
1904 1904
  'Git revision: #1, #2 #3'     => '',
1905 1905
  'Given Name'                  => '',
1906
  'Given variant_property_values doesn\'t match the variant_properties of parent_variant part.' => '',
1906 1907
  'Gldate'                      => 'Entry Date',
1907 1908
  'Global Attachments'          => '',
1908 1909
  'Global Record BCC'           => '',

Auch abrufbar als: Unified diff