Hi Jerome, you were too fast
I was just about to post new info about the problem.
My pack is set up to use no pack data.
Clicking refresh associations will always remove existing serials but not generate new ones.
I tracked down the executed task to refresh() function in admin hikaserial/classes/order.php.
Last lines of the function are:
if(in_array($order->order_status, $statuses)) {
$this->assignSerials($order);
} else {
$this->unassignSerials($order);
}
now, for some reason $statuses will always be an array with the only entry being an empty string - array( 0=>"" ).
Which ends in serials always being unassigned.
Statuses array is assigned by hikaserial config vars assignable_order_statuses or order_confirmed_status.
Both don't seem to exist when I dump hikaserial::config(false).
I checked hikaserial configuration in backend but I couldn't find settings with matching or similar names.
So my current question is: What should I do to make sure $statuses array is filled with correct entries?
Thanks for your help