Skip to content
Snippets Groups Projects
Commit cc3edc53 authored by Emil Stjerneman's avatar Emil Stjerneman
Browse files

Issue #2755403 by anon: Edit link don't remove data- attributes

parent 6c881645
No related branches found
No related tags found
2 merge requests!78Issue #3472672: Fix the issues reported by PHP_CodeSniffer,!59Revert "Issue #2900766 by rubendello: Not all autocomplete values are...
......@@ -94,6 +94,8 @@ function linkit_form_editor_link_dialog_validate(array &$form, FormStateInterfac
$href = $form_state->getValue(['attributes', 'href']);
$uri_parts = parse_url($href);
if ($uri_parts['scheme'] !== 'entity') {
$form_state->setValue(['attributes', 'data-entity-type'], '');
$form_state->setValue(['attributes', 'data-entity-uuid'], '');
return;
}
......
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