This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user