Unverified Commit 5f8df0e9 authored by alexpott's avatar alexpott

Issue #3160169 by jameszhang023: Unused variable $a in...

Issue #3160169 by jameszhang023: Unused variable $a in \Drupal\taxonomy\Plugin\Validation\Constraint\TaxonomyTermHierarchyConstraintValidator::validate()

(cherry picked from commit ec711906)
parent 7ed24a5a
......@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment