Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
eduardogomez97 committed Feb 12, 2025
1 parent 7afff03 commit 5642976
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,10 @@ public static function custom_product_endpoint( $request, $config_request = fals
);
} else {
// Update on save.
$fields_param = $config_request['fields'] ?? '';
$fields = ! empty( $fields_param ) ? explode( ',', $fields_param ) : array();
$fields = array_merge( $fields, array_values( $custom_attr_fields ) );
$config_request['fields'] = $fields;
$fields_param = $config_request['fields'] ?? '';
$fields = ! empty( $fields_param ) ? explode( ',', $fields_param ) : array();
$fields = array_merge( $fields, array_values( $custom_attr_fields ) );
$config_request['fields'] = $fields;
}

// Retrieve the original product data.
Expand Down

0 comments on commit 5642976

Please sign in to comment.