projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ActionBar: Übersetzungen
[kivitendo-erp.git]
/
SL
/
DO.pm
diff --git
a/SL/DO.pm
b/SL/DO.pm
index
2cfd43d
..
ed4d2f5
100644
(file)
--- a/
SL/DO.pm
+++ b/
SL/DO.pm
@@
-746,15
+746,14
@@
sub retrieve {
$sth = prepare_execute_query($form, $dbh, $query, $form->{id});
$ref = $sth->fetchrow_hashref("NAME_lc");
$sth = prepare_execute_query($form, $dbh, $query, $form->{id});
$ref = $sth->fetchrow_hashref("NAME_lc");
- delete $ref->{id};
- map { $form->{$_} = $ref->{$_} } keys %$ref;
+ $form->{$_} = $ref->{$_} for grep { m{^shipto(?!_id$)} } keys %$ref;
$sth->finish();
$sth->finish();
- if ($
form
->{shipto_id}) {
+ if ($
ref
->{shipto_id}) {
my $cvars = CVar->get_custom_variables(
dbh => $dbh,
module => 'ShipTo',
my $cvars = CVar->get_custom_variables(
dbh => $dbh,
module => 'ShipTo',
- trans_id => $
form
->{shipto_id},
+ trans_id => $
ref
->{shipto_id},
);
$form->{"shiptocvar_$_->{name}"} = $_->{value} for @{ $cvars };
}
);
$form->{"shiptocvar_$_->{name}"} = $_->{value} for @{ $cvars };
}