diff options
Diffstat (limited to 'lib/db-viewtable-html.lsp')
-rw-r--r-- | lib/db-viewtable-html.lsp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/db-viewtable-html.lsp b/lib/db-viewtable-html.lsp index bd4f051..9b60720 100644 --- a/lib/db-viewtable-html.lsp +++ b/lib/db-viewtable-html.lsp @@ -106,7 +106,13 @@ allowupdate = allowupdate and viewlibrary.check_permission("updatetableentry") </td> <% end %> <% for i,f in ipairs(form.value.fields.value) do %> - <td><%= html.html_escape(tableentry[f]) %></td> + <td> + <% if not tableentry[f] then %> + <i>NULL</i> + <% else %> + <%= html.html_escape(tableentry[f]) %> + <% end %> + </td> <% end %> </tr> <% end %> |