Bugzilla 856 - Eine Datei zu dem Eintrag von gerade noch hinzufuegen (has_ean)
authorJan Büren <information@richardson-bueren.de>
Tue, 5 May 2009 11:44:39 +0000 (11:44 +0000)
committerJan Büren <information@richardson-bueren.de>
Tue, 5 May 2009 11:44:39 +0000 (11:44 +0000)
bin/mozilla/common.pl

index 9cd54a4..0d7862b 100644 (file)
@@ -69,6 +69,11 @@ sub select_part {
     $has_charge = 1;
     map { $_->{has_charge} = 1; } @parts;
   }
+  my $has_ean = 0;
+  if (defined($parts[0]->{ean})) {
+    $has_ean = 1;
+    map { $_->{has_ean} = 1; } @parts;
+  }
 
   my $old_form = save_form();
 
@@ -80,6 +85,7 @@ sub select_part {
                                      "nextsub"          => "select_part_internal",
                                      "callback_sub"     => $callback_sub,
                                      "has_charge"       => $has_charge,
+                                     "has_ean"         => $has_ean,
                                      "remap_parts_id"   => $remap_parts_id,
                                      "remap_partnumber" => $remap_partnumber });