Correctly set 'created_via' for HPOS orders created on the admin (#40469)
This commit is contained in:
parent
82ddee70a5
commit
3cfa509118
|
@ -0,0 +1,4 @@
|
|||
Significance: patch
|
||||
Type: fix
|
||||
|
||||
Correctly set 'created_via' for HPOS orders created on the admin.
|
|
@ -384,6 +384,7 @@ class PageController {
|
|||
$this->order = new $order_class_name();
|
||||
$this->order->set_object_read( false );
|
||||
$this->order->set_status( 'auto-draft' );
|
||||
$this->order->set_created_via( 'admin' );
|
||||
$this->order->save();
|
||||
$this->handle_edit_lock();
|
||||
|
||||
|
|
Loading…
Reference in New Issue