Skip to content

Commit 7a3fa63

Browse files
authored
Merge pull request #304 from hwsiew/develop
Fixed : #303
2 parents f8399f2 + 50968f4 commit 7a3fa63

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

includes/type/object/class-order-type.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ public static function register() {
276276
'type' => 'Order',
277277
'description' => __( 'Parent order', 'wp-graphql-woocommerce' ),
278278
'resolve' => function( $order, array $args, AppContext $context ) {
279-
return Factory::resolve_crud_object( $order->parent, $context );
279+
return Factory::resolve_crud_object( $order->parent_id, $context );
280280
},
281281
),
282282
'customer' => array(

0 commit comments

Comments
 (0)