Skip to content

Commit

Permalink
[Bug]: some uploaded data object via mutation having white representa…
Browse files Browse the repository at this point in the history
…tion. (#533)

* [Bug]: some uploaded data object via mutation having white representation.

* Apply php-cs-fixer changes

Co-authored-by: mcop1 <[email protected]>
  • Loading branch information
mcop1 and mcop1 authored May 19, 2022
1 parent 96f82b9 commit 1168250
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/GraphQL/Mutation/MutationType.php
Original file line number Diff line number Diff line change
Expand Up @@ -617,7 +617,11 @@ public function buildDataObjectMutations(&$config = [], $context = [])

$resolver = $me->getUpdateObjectResolver($processors, $localeService, $newInstance, $me->omitPermissionCheck);

call_user_func_array($resolver, [$value, $args, $context, $info]);
$returnValue = call_user_func_array($resolver, [$value, $args, $context, $info]);
if (isset($returnValue['success']) === true &&
$returnValue['success'] === false) {
return $returnValue;
}

if (isset($args['omitMandatoryCheck'])) {
$newInstance->setOmitMandatoryCheck($args['omitMandatoryCheck']);
Expand Down

0 comments on commit 1168250

Please sign in to comment.