X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=bin%2Fmozilla%2Fct.pl;h=706860a1f983bdcf30dfe99c11018fd46aceb692;hb=637be9d46084bc19a08b91bc13ae541a6c36f9ef;hp=d532874a075f2f18652126095009d2193703a9a3;hpb=e3bd574690299326410cef943fe8f738cc49836b;p=kivitendo-erp.git diff --git a/bin/mozilla/ct.pl b/bin/mozilla/ct.pl index d532874a0..706860a1f 100644 --- a/bin/mozilla/ct.pl +++ b/bin/mozilla/ct.pl @@ -68,16 +68,34 @@ sub add { sub search { $lxdebug->enter_sub(); - $label = ucfirst $form->{db}; - $form->{title} = $locale->text($label . "s"); + my $vc_business_type = $form->{db} eq "customer" ? + $locale->text("Customer type") : $locale->text("Vendor type"); + + $form->get_lists("business_types" => "ALL_BUSINESS_TYPES"); + my (%labels, @values); + + my $business_types; + if (scalar(@{ $form->{ALL_BUSINESS_TYPES} }) != 0) { + push(@values, undef); + foreach my $item (@{ $form->{ALL_BUSINESS_TYPES} }) { + push(@values, $item->{id}); + $labels{$item->{id}} = $item->{description}; + } - if ($form->{db} eq 'vendor') { - $gifi = qq| -