This commit is contained in:
2021-04-29 19:11:59 +00:00
parent 27b5416d4e
commit d143e30b96
2 changed files with 9 additions and 15 deletions

View File

@@ -10,7 +10,13 @@ export default {
// called from App.vue
handleOpenObjectClick(vm, tid) {
//expects extra data (tid) to be one of { type: [AYATYPE], id: [RECORDID] }
//NOTE: for new objects all edit pages assume record ID 0 means create rather than open
//NOTE: for new objects all edit pages assume record ID 0 (or null) means create rather than open
//for sake of ease of coding I'm going to assume null id also means make a new record intent
//so I don't have to parse and decide constantly on forms for every control that has a open record link in it
if (tid.id == null) {
tid.id = 0;
}
if (tid.type && tid.id != null) {
//if these come from route parameters they may well be strings