From 672e7090f060a8d1316c1e2adff7a752f8b604a7 Mon Sep 17 00:00:00 2001 From: Thibaud Colas Date: Wed, 17 Jan 2018 10:58:36 +0200 Subject: [PATCH] Remove repetition in link entity to dbhtml converter --- wagtail/admin/rich_text/converters/contentstate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wagtail/admin/rich_text/converters/contentstate.py b/wagtail/admin/rich_text/converters/contentstate.py index 1e3d5c2ea..dde5d6eea 100644 --- a/wagtail/admin/rich_text/converters/contentstate.py +++ b/wagtail/admin/rich_text/converters/contentstate.py @@ -21,7 +21,7 @@ def link_entity(props): if id_ is not None: link_props['linktype'] = 'page' - link_props['id'] = props.get('id') + link_props['id'] = id_ else: link_props['href'] = props.get('url')