Skip to content
Snippets Groups Projects
Unverified Commit ec711906 authored by Alex Pott's avatar Alex Pott
Browse files

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

Issue #3160169 by jameszhang023: Unused variable $a in \Drupal\taxonomy\Plugin\Validation\Constraint\TaxonomyTermHierarchyConstraintValidator::validate()
parent 47a7b736
No related branches found
No related tags found
No related merge requests found
......@@ -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();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment