From: Sven Schöling Date: Fri, 10 Feb 2012 16:34:00 +0000 (+0100) Subject: gelöschte Benutzer in gl/search ausblenden X-Git-Tag: release-2.7.0beta2~5^2~28 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=77c873db480172bd8d73dd361f27ba7650dba00c;p=kivitendo-erp.git gelöschte Benutzer in gl/search ausblenden --- diff --git a/bin/mozilla/gl.pl b/bin/mozilla/gl.pl index a4f2d1dfe..ce1d1a9dd 100644 --- a/bin/mozilla/gl.pl +++ b/bin/mozilla/gl.pl @@ -217,8 +217,8 @@ sub search { $::form->all_departments(\%::myconfig); $::form->get_lists( projects => { key => "ALL_PROJECTS", all => 1 }, - employees => "ALL_EMPLOYEES", ); + $::form->{ALL_EMPLOYEES} = SL::DB::Manager::Employee->get_all(query => [ deleted => 0 ]); my $onload = "focus()" . qq|;setupDateFormat('|. $::myconfig{dateformat} . qq|', '| . $::locale->text("Falsches Datumsformat!") . qq|')| diff --git a/templates/webpages/gl/search.html b/templates/webpages/gl/search.html index 0d3a15585..6c5b7d78b 100644 --- a/templates/webpages/gl/search.html +++ b/templates/webpages/gl/search.html @@ -44,7 +44,7 @@ [% 'Employee' | $T8 %] - [% L.select_tag('employee', L.options_for_select(ALL_EMPLOYEES, value_sub=\employee_label, title='name', with_empty=1)) %] + [% L.select_tag('employee', L.options_for_select(ALL_EMPLOYEES, title='safe_name', with_empty=1)) %] [% 'Filter date by' | $T8 %]