projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
BackgroundJob SelfTest: unbenutzte Variable entfernt
[kivitendo-erp.git]
/
SL
/
Controller
/
CsvImport
/
Helper
/
Consistency.pm
diff --git
a/SL/Controller/CsvImport/Helper/Consistency.pm
b/SL/Controller/CsvImport/Helper/Consistency.pm
index
da9f455
..
d1ce92b
100644
(file)
--- a/
SL/Controller/CsvImport/Helper/Consistency.pm
+++ b/
SL/Controller/CsvImport/Helper/Consistency.pm
@@
-219,9
+219,13
@@
sub handle_employee {
my $object = $entry->{object};
my $object = $entry->{object};
+ # employee from front end if not given
+ if (!$object->employee_id) {
+ $object->employee_id($self->controller->{employee_id});
+ }
# employee from login if not given
if (!$object->employee_id) {
# employee from login if not given
if (!$object->employee_id) {
- $object->employee_id(SL::DB::Manager::Employee->
find_by(login => $::myconfig{login})->id)
;
+ $object->employee_id(SL::DB::Manager::Employee->
current->id) if SL::DB::Manager::Employee->current
;
}
}
}
}