Skip to content

Commit

Permalink
Merge pull request #33 from ezsystems/ezp30419-fix_multiple_groups
Browse files Browse the repository at this point in the history
Fixed a schema error when type in multiple groups (EZP-30419)
  • Loading branch information
Łukasz Serwatka authored Apr 12, 2019
2 parents 480dd89 + 251cb53 commit 15f1b54
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,8 @@ public function canWork(Builder $schema, array $args)
{
return isset($args['ContentType'])
&& $args['ContentType'] instanceof ContentType
&& !isset($args['FieldDefinition']);
&& !isset($args['FieldDefinition'])
&& !$schema->hasType($this->getCreateInputName($args['ContentType']));
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ public function canWork(Builder $schema, array $args): bool
isset($args['ContentType'])
&& $args['ContentType'] instanceof ContentType
&& isset($args['FieldDefinition'])
&& $args['FieldDefinition'] instanceof FieldDefinition;
&& $args['FieldDefinition'] instanceof FieldDefinition
&& !$schema->hasTypeWithField($this->getCreateInputName($args['ContentType']), $this->getFieldDefinitionField($args['FieldDefinition']));
}

/**
Expand Down

0 comments on commit 15f1b54

Please sign in to comment.