diff --git a/ayanova/devdocs/todo.txt b/ayanova/devdocs/todo.txt index 4c3f9abf..ac67f05b 100644 --- a/ayanova/devdocs/todo.txt +++ b/ayanova/devdocs/todo.txt @@ -2,11 +2,6 @@ @@@@@@@@@@@@@@@ ROADMAP STAGE 4 - REPORTING / DASHBOARD / KPI @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ -todo: confirm logout stops the notify check - I logged out at end of day today, check first thing in the morning if any - -todo: user form - create user but just type name, try to save, get mysterious object did not pass validation but it doesn't show the actual error which is customertype not set?! todo: Joyce issue report: can't delete second report template @@ -37,7 +32,7 @@ todo: Joyce issue report: at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Awaited|25_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) - +todo: duplicate renaming code just keeps adding -1 to the end in consecutive duplicates so you get name-1-1-1-1 Is this kosher? todo: Direct report view URL doesn't work if already logged in due to code only being in login form need to hijack the router before navigation to intercept special urls diff --git a/ayanova/src/api/gzutil.js b/ayanova/src/api/gzutil.js index ba09e26f..3dbbafea 100644 --- a/ayanova/src/api/gzutil.js +++ b/ayanova/src/api/gzutil.js @@ -447,7 +447,7 @@ export default { // objectIsEmpty: function(obj) { //https://stackoverflow.com/a/4994265/8939 - return Object.keys(obj).length === 0; + return !obj || Object.keys(obj).length === 0; }, /////////////////////////////////////////////// // Trim specific character from start and end diff --git a/ayanova/src/views/adm-user.vue b/ayanova/src/views/adm-user.vue index d246a818..0ca7c7ae 100644 --- a/ayanova/src/views/adm-user.vue +++ b/ayanova/src/views/adm-user.vue @@ -322,7 +322,7 @@ export default { active: false, name: null, roles: null, - userType: 3, + userType: 2, employeeNumber: null, notes: null, customerId: null,