gelöschte Benutzer in gl/search ausblenden
authorSven Schöling <s.schoeling@linet-services.de>
Fri, 10 Feb 2012 16:34:00 +0000 (17:34 +0100)
committerSven Schöling <s.schoeling@linet-services.de>
Fri, 10 Feb 2012 16:34:00 +0000 (17:34 +0100)
bin/mozilla/gl.pl
templates/webpages/gl/search.html

index a4f2d1d..ce1d1a9 100644 (file)
@@ -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|')|
index 0d3a155..6c5b7d7 100644 (file)
@@ -44,7 +44,7 @@
         </tr>
  <tr>
     <th align=right>[% 'Employee' | $T8 %]</th>
-    <td colspan=3>[% L.select_tag('employee', L.options_for_select(ALL_EMPLOYEES, value_sub=\employee_label, title='name', with_empty=1)) %]</td>
+    <td colspan=3>[% L.select_tag('employee', L.options_for_select(ALL_EMPLOYEES, title='safe_name', with_empty=1)) %]</td>
   </tr>
   <tr>
     <th align=right>[% 'Filter date by' | $T8 %]</th>