From: Sven Schöling Date: Fri, 10 Feb 2012 16:05:41 +0000 (+0100) Subject: safe_name methode in Employee X-Git-Tag: release-2.7.0beta2~5^2~30 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=6bda747d1e2c0e8474beca9e479382bc976acf8f;p=kivitendo-erp.git safe_name methode in Employee Wird für Anzeige gebraucht --- diff --git a/SL/DB/Employee.pm b/SL/DB/Employee.pm index 8688e8297..92444551e 100644 --- a/SL/DB/Employee.pm +++ b/SL/DB/Employee.pm @@ -12,4 +12,10 @@ sub has_right { return $::auth->check_right($self->login, $right); } +sub safe_name { + my ($self) = @_; + + return $self->name || $self->login; +} + 1;