diff options
author | Ted Trask <ttrask01@yahoo.com> | 2014-11-03 15:04:17 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2014-11-03 15:04:17 +0000 |
commit | e4129fdebf270ab4a586af93947278817ed89349 (patch) | |
tree | 5bc855b11cdd97d11a62af781731e8d9468f2a2f /lib/db-viewtable-html.lsp | |
parent | 5daaba36008eedae15f3172ead44bbdd64fb584a (diff) | |
download | acf-db-e4129fdebf270ab4a586af93947278817ed89349.tar.bz2 acf-db-e4129fdebf270ab4a586af93947278817ed89349.tar.xz |
Add support for NULL and DEFAULT values in viewtable, create/update/delete tableentry
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 %> |