fixed it, was actually the open object handler not comparing to null explicitly so zero was considered no ID at all

This commit is contained in:
2020-03-24 19:45:29 +00:00
parent 07c6d54c0b
commit c235451b80
2 changed files with 3 additions and 3 deletions

View File

@@ -10,7 +10,7 @@ export default {
//expects extra data (tid) to be { type: [AYATYPE], id: [RECORDID] } //expects extra data (tid) to be { 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 means create rather than open
if (tid.type && tid.id) { if (tid.type && tid.id != null) {
switch (tid.type) { switch (tid.type) {
case ayatype.Widget: case ayatype.Widget:
vm.$router.push({ vm.$router.push({

View File

@@ -86,7 +86,7 @@ export default {
// debugger; // debugger;
//TODO: this may be needed to force new records to have a zero in their no selection valid fields rather than null //TODO: this may be needed to force new records to have a zero in their no selection valid fields rather than null
// however it could overwrite a valid value maybe so needs further testing // however it could overwrite a valid value maybe so needs further testing
//this.$emit("input", 0); //
//set initial value in control if selected //set initial value in control if selected
if (vm.value != null && vm.value != 0) { if (vm.value != null && vm.value != 0) {