diff --git a/ayanova/src/api/open-object-handler.js b/ayanova/src/api/open-object-handler.js index 70881cc6..71f04cab 100644 --- a/ayanova/src/api/open-object-handler.js +++ b/ayanova/src/api/open-object-handler.js @@ -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({ diff --git a/ayanova/src/components/pick-list.vue b/ayanova/src/components/pick-list.vue index 073dff81..94a0ddeb 100644 --- a/ayanova/src/components/pick-list.vue +++ b/ayanova/src/components/pick-list.vue @@ -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 {