Skip to content

Commit

Permalink
Issue #3160169 by jameszhang023: Unused variable $a in \Drupal\taxono…
Browse files Browse the repository at this point in the history
…my\Plugin\Validation\Constraint\TaxonomyTermHierarchyConstraintValidator::validate()

(cherry picked from commit ec71190699cc524d96ccca267bd45cd112e3489d)
  • Loading branch information
alexpott committed Jul 20, 2020
1 parent 5e79d23 commit c0034af
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ public function validate($entity, Constraint $constraint) {
$new_parents = array_column($entity->parent->getValue(), 'target_id');
$original_parents = array_keys($term_storage->loadParents($entity->id())) ?: [0];
if (($is_pending_revision || $ancestor_is_pending_revision) && $new_parents != $original_parents) {
$a = 1;
$this->context->buildViolation($constraint->message)
->atPath('parent')
->addViolation();
Expand Down

0 comments on commit c0034af

Please sign in to comment.