Преглед изворни кода

Fixes #9775: Fix exception when viewing a report with no descripton

jeremystretch пре 3 година
родитељ
комит
a7a20ad2ea

+ 2 - 0
docs/release-notes/version-3.2.md

@@ -9,9 +9,11 @@
 
 ### Bug Fixes
 
+* [#9634](https://github.com/netbox-community/netbox/issues/9634) - Fix image URLs in rack elevations when using external storage
 * [#9715](https://github.com/netbox-community/netbox/issues/9715) - Fix `SOCIAL_AUTH_PIPELINE` config parameter not taking effect
 * [#9754](https://github.com/netbox-community/netbox/issues/9754) - Fix regression introduced by #9632
 * [#9746](https://github.com/netbox-community/netbox/issues/9746) - Permit filtering interfaces by arbitrary speed value in UI
+* [#9775](https://github.com/netbox-community/netbox/issues/9775) - Fix exception when viewing a report with no description
 
 ---
 

+ 2 - 0
netbox/utilities/templatetags/builtins/filters.py

@@ -144,6 +144,8 @@ def render_markdown(value):
 
         {{ md_source_text|markdown }}
     """
+    if not value:
+        return ''
 
     # Render Markdown
     html = markdown(value, extensions=['def_list', 'fenced_code', 'tables', StrikethroughExtension()])