fix: Editor for LinkPlugin doe not offer anchors to empty id-attributes
@@ -181,6 +181,7 @@ class LinkForm(EntangledModelFormMixin):
try:
cascade_page = get_related_object(instance.glossary, 'cms_page').cascadepage
for key, val in cascade_page.glossary.get('element_ids', {}).items():
+ if val:
self.base_fields['section'].choices.append((key, val))
except (AttributeError, ObjectDoesNotExist):
pass
