X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/ca099d9f9803d203545d3a4887937fc90a36cdb5..56b09ede7319e2e1232f63c40fac25580e05258b:/SL/Controller/ClientConfig.pm diff --git a/SL/Controller/ClientConfig.pm b/SL/Controller/ClientConfig.pm index 1bfa615ac..fd39fc3cf 100644 --- a/SL/Controller/ClientConfig.pm +++ b/SL/Controller/ClientConfig.pm @@ -55,6 +55,9 @@ sub action_edit { $self->{warehouse_id} ||= $self->{WAREHOUSES}->[$max -1]->{id}; $self->{bin_id} ||= $self->{WAREHOUSES}->[$max -1]->{BINS}->[0]->{id}; } + + $self->{show_weight} = SL::DB::Default->get->show_weight; + $self->render('client_config/form', title => $::locale->text('Client Configuration')); } @@ -83,6 +86,8 @@ sub action_save { } map { SL::DB::Default->get->update_attributes($_ => $::form->{$_}); } qw(warehouse_id bin_id); + SL::DB::Default->get->update_attributes('show_weight' => $::form->{show_weight}); + flash_later('info', $::locale->text('Client Configuration saved!')); $self->redirect_to(action => 'edit');