X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/dcef8eb00b07cf85be6fe9f97e233b3e1d4847db..bcc996e65643:/SL/Controller/Project.pm?ds=sidebyside diff --git a/SL/Controller/Project.pm b/SL/Controller/Project.pm index 0e81e570d..601b245b7 100644 --- a/SL/Controller/Project.pm +++ b/SL/Controller/Project.pm @@ -65,7 +65,7 @@ sub action_list { $self->prepare_report; - $self->report_generator_list_objects(report => $self->{report}, objects => $self->models->get, action_bar => 1); + $self->report_generator_list_objects(report => $self->{report}, objects => $self->models->get); } sub action_new { @@ -297,7 +297,7 @@ sub prepare_report { project_type => { sub => sub { $_[0]->project_type->description } }, project_status => { sub => sub { $_[0]->project_status->description }, text => t8('Status') }, customer => { sub => sub { !$_[0]->customer_id ? '' : $_[0]->customer->name }, - raw_data => sub { !$_[0]->customer_id ? '' : $self->presenter->customer($_[0]->customer, display => 'table-cell', callback => $callback) } }, + raw_data => sub { !$_[0]->customer_id ? '' : $_[0]->customer->presenter->customer(display => 'table-cell', callback => $callback) } }, active => { sub => sub { $_[0]->active ? $::locale->text('Active') : $::locale->text('Inactive') }, text => $::locale->text('Active') }, valid => { sub => sub { $_[0]->valid ? $::locale->text('Valid') : $::locale->text('Invalid') }, @@ -422,12 +422,12 @@ sub setup_search_action_bar { for my $bar ($::request->layout->get('actionbar')) { $bar->add( action => [ - t8('Search'), + t8('Update'), submit => [ '#search_form', { action => 'Project/list' } ], accesskey => 'enter', ], link => [ - t8('Add Project'), + t8('Add'), link => $self->url_for(action => 'new'), ], );