Commit 557f0d5f authored by joubu's avatar joubu

Bug 15184: Set created_by to the logged in user

parent 4ceab71e
......@@ -274,7 +274,8 @@ sub duplicate_to {
$order_info->{$field} = $value;
}
# FIXME $order_info->{created_by} = logged_in_user?
my $userenv = C4::Context->userenv;
$order_info->{created_by} = $userenv->{number};
$order_info->{basketno} = $basket->basketno;
$new_order = Koha::Acquisition::Order->new($order_info)->store;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment