Skip to content
Snippets Groups Projects

Issue #3508822: Property constraints validation adding errors to the field element instead of just the property

Issue #3508822: Property constraints validation adding errors to the field element instead of just the property
1 unresolved thread
1 unresolved thread

Closes #3508822

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • resolved all threads

  • added 1 commit

    Compare with previous version

  • added 2 commits

    • a27e9928 - Convert test module to new classes system.
    • 3ebee4c2 - Removed core_version_requirement from test module.

    Compare with previous version

  • resolved all threads

  • 344 345 return $changed;
    345 346 }
    346 347
    348 /**
    349 * {@inheritdoc}
    350 */
    351 public function errorElement(array $element, ConstraintViolationInterface $error, array $form, FormStateInterface $form_state) {
    352 $element = parent::errorElement($element, $error, $form, $form_state);
    353
    354 $property_path_array = explode('.', $error->getPropertyPath());
    355 return ($element === FALSE) ? FALSE : $element[$property_path_array[1]];
  • closed

  • Please register or sign in to reply
    Loading