Revision eabfa795
Von Bernd Bleßmann vor etwa 3 Jahren hinzugefügt
SL/AM.pm | ||
---|---|---|
556 | 556 |
|
557 | 557 |
my ($self, $form) = @_; |
558 | 558 |
|
559 |
my $employee = SL::DB::Manager::Employee->find_by(login => $::myconfig{login});
|
|
559 |
my $employee = SL::DB::Manager::Employee->current;
|
|
560 | 560 |
$employee->update_attributes(name => $form->{name}); |
561 | 561 |
|
562 | 562 |
my $user = SL::DB::Manager::AuthUser->find_by(login => $::myconfig{login}); |
SL/Controller/CsvImport/Helper/Consistency.pm | ||
---|---|---|
208 | 208 |
if ($vc_obj && $vc_obj->salesman_id) { |
209 | 209 |
$object->salesman(SL::DB::Manager::Employee->find_by(id => $vc_obj->salesman_id)); |
210 | 210 |
} else { |
211 |
$object->salesman(SL::DB::Manager::Employee->find_by(login => $::myconfig{login}));
|
|
211 |
$object->salesman(SL::DB::Manager::Employee->current);
|
|
212 | 212 |
} |
213 | 213 |
} |
214 | 214 |
} |
SL/Controller/CsvImport/Inventory.pm | ||
---|---|---|
370 | 370 |
|
371 | 371 |
# employee from login if not given |
372 | 372 |
if (!$object->employee_id) { |
373 |
$object->employee_id(SL::DB::Manager::Employee->find_by(login => $::myconfig{login})->id);
|
|
373 |
$object->employee_id(SL::DB::Manager::Employee->current->id) if SL::DB::Manager::Employee->current;
|
|
374 | 374 |
} |
375 | 375 |
|
376 | 376 |
if ($object->employee_id) { |
Auch abrufbar als: Unified diff
Employee::current statt manuell an weiteren Stellen