+ # add_items adds items to an order with no items for saving, but they cannot
+ # be retrieved via items until the order is saved. Adding empty items to new
+ # order here solves this problem.
+ my $order;
+ $order = SL::DB::Manager::Order->find_by(id => $::form->{id}) if $::form->{id};
+ $order ||= SL::DB::Order->new(orderitems => []);