Falscher Accessor für Vorlagensprache
authorMoritz Bunkus <m.bunkus@linet-services.de>
Fri, 10 Dec 2010 13:18:37 +0000 (14:18 +0100)
committerMoritz Bunkus <m.bunkus@linet-services.de>
Wed, 12 Jan 2011 15:37:31 +0000 (16:37 +0100)
SL/DB/Helper/FlattenToForm.pm

index beaaa05..9fc9b5c 100644 (file)
@@ -44,7 +44,7 @@ sub flatten_to_form {
   _copy($self->acceptance_confirmed_by, $form, 'acceptance_confirmed_by_', '', 0, map { $_->name } SL::DB::Employee->meta->columns)        if _has($self, 'acceptance_confirmed_by_id');
 
   $form->{employee}   = $self->employee->name          if _has($self, 'employee_id');
-  $form->{language}   = $self->language_code           if _has($self, 'language_id');
+  $form->{language}   = $self->language->template_code if _has($self, 'language_id');
   $form->{department} = $self->department->description if _has($self, 'department_id');
   $form->{rowcount}   = scalar(@{ $self->items });