Skip to content

Commit

Permalink
Merge pull request #304 from hwsiew/develop
Browse files Browse the repository at this point in the history
Fixed : #303
  • Loading branch information
kidunot89 authored Jun 22, 2020
2 parents f8399f2 + 50968f4 commit 7a3fa63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/type/object/class-order-type.php
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ public static function register() {
'type' => 'Order',
'description' => __( 'Parent order', 'wp-graphql-woocommerce' ),
'resolve' => function( $order, array $args, AppContext $context ) {
return Factory::resolve_crud_object( $order->parent, $context );
return Factory::resolve_crud_object( $order->parent_id, $context );
},
),
'customer' => array(
Expand Down

0 comments on commit 7a3fa63

Please sign in to comment.