Skip to content

Commit

Permalink
Merge branch '1.3' into 1.x
Browse files Browse the repository at this point in the history
  • Loading branch information
mcop1 committed May 25, 2022
2 parents e755682 + 1168250 commit ab641b8
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 ab641b8

Please sign in to comment.