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:
@@ -10,7 +10,7 @@ export default {
|
||||
//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
|
||||
|
||||
if (tid.type && tid.id) {
|
||||
if (tid.type && tid.id != null) {
|
||||
switch (tid.type) {
|
||||
case ayatype.Widget:
|
||||
vm.$router.push({
|
||||
|
||||
@@ -86,7 +86,7 @@ export default {
|
||||
// debugger;
|
||||
//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
|
||||
//this.$emit("input", 0);
|
||||
//
|
||||
|
||||
//set initial value in control if selected
|
||||
if (vm.value != null && vm.value != 0) {
|
||||
@@ -95,7 +95,7 @@ export default {
|
||||
// console.log("STUB: created: has value, sb fetched");
|
||||
var urlParams = "?ayaType=" + vm.ayaType + "&preId=" + vm.value;
|
||||
vm.getList(urlParams);
|
||||
}
|
||||
}
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user