Revision 34dc226c
Von Moritz Bunkus vor mehr als 17 Jahren hinzugefügt
bin/mozilla/ic.pl | ||
---|---|---|
747 | 747 |
sub list { |
748 | 748 |
$lxdebug->enter_sub(); |
749 | 749 |
|
750 |
# get parts for |
|
751 |
if (($form->{partnumber} eq "") and ($form->{description} eq "")) { |
|
752 |
IC->get_parts(\%myconfig, \%$form, ""); |
|
753 |
} else { |
|
754 |
if ((!($form->{partnumber} eq "")) and ($form->{description} eq "")) { |
|
755 |
IC->get_parts(\%myconfig, \%$form, "partnumber"); |
|
756 |
} else { |
|
757 |
if (($form->{partnumber} eq "") and (!($form->{description} eq ""))) { |
|
758 |
IC->get_parts(\%myconfig, \%$form, "description"); |
|
759 |
} else { |
|
760 |
IC->get_parts(\%myconfig, \%$form, "all"); |
|
761 |
} #fi |
|
762 |
} #fi |
|
763 |
} #fi |
|
750 |
my @sortorders = ("", "partnumber", "description", "all"); |
|
751 |
my $sortorder = $sortorders[($form->{description} ? 2 : 0) + ($form->{partnumber} ? 1 : 0)]; |
|
752 |
IC->get_parts(\%myconfig, \%$form, $sortorder); |
|
764 | 753 |
|
765 | 754 |
$form->{title} = $locale->text('Top 100 hinzufuegen'); |
766 | 755 |
|
Auch abrufbar als: Unified diff
Kleine Codevereinfachung.