Keine "leere" Währungsauswahl in CustomerVendor erlauben
authorThomas Heck <theck@linet-services.de>
Thu, 18 Jul 2013 14:08:00 +0000 (16:08 +0200)
committerThomas Heck <theck@linet-services.de>
Thu, 18 Jul 2013 14:08:00 +0000 (16:08 +0200)
SL/Controller/CustomerVendor.pm
templates/webpages/customer_vendor/tabs/billing.html

index cfe7acc..cc2af35 100644 (file)
@@ -668,6 +668,7 @@ sub _create_customer_vendor {
   } else {
     $self->{cv} = SL::DB::Customer->new();
   }
+  $self->{cv}->currency_id($::instance_conf->get_currency_id());
 
   $self->{note} = SL::DB::Note->new();
 
index b7dfe9e..979ccbc 100644 (file)
         <th align="right">[% 'Currency' | $T8 %]</th>
 
         <td>
-          [% L.select_tag('cv.currency_id', SELF.all_currencies, title_key = 'name', value_key = 'id', default = SELF.cv.currency_id, with_empty = 1) %]
+          [% L.select_tag('cv.currency_id', SELF.all_currencies, title_key = 'name', value_key = 'id', default = SELF.cv.currency_id) %]
         </td>
       [% END %]
     </tr>