Skip to content

Commit 603f06f

Browse files
committed
Show dba_views-text_vc if text is empty
1 parent c487d26 commit 603f06f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

app/views/dba_schema/_list_view_description.html.erb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,11 @@
4343
<%= gen_slickgrid(@attribs, view_options, {:caption => "Description of #{@object_type} #{@owner}.#{@object_name}", :height => :auto, show_pin_icon: 1}) %>
4444

4545

46-
<%= render_code_mirror(@attribs[0]&.text, cm_options: { lineNumbers: true}) %>
46+
<%=
47+
text = @attribs[0]&.text
48+
text = @attribs[0]&.text_vc if get_db_version >= "12.2" && (text.nil? || text.empty?)
49+
render_code_mirror(text, cm_options: { lineNumbers: true})
50+
%>
4751

4852
<div class="flex-row-container">
4953
<div class="flex-row-element">

0 commit comments

Comments
 (0)