This commit is contained in:
@@ -143,7 +143,7 @@ export default {
|
||||
if (!this.showEditIcon) {
|
||||
return null;
|
||||
}
|
||||
if (this.value != 0) {
|
||||
if (this.value != null) {
|
||||
return "$ayiEdit";
|
||||
}
|
||||
return "$ayiPlus";
|
||||
@@ -185,8 +185,8 @@ export default {
|
||||
}
|
||||
}
|
||||
//is it the no selection item?
|
||||
if (val == 0) {
|
||||
window.$gz.form.addNoSelectionItem(vm.searchResults);
|
||||
if (val == null) {
|
||||
window.$gz.form.addNoSelectionItem(vm.searchResults, true);
|
||||
} else {
|
||||
//Not here, better get it
|
||||
let urlParams = "?ayaType=" + vm.ayaType + "&preId=" + vm.value;
|
||||
@@ -274,7 +274,7 @@ export default {
|
||||
throw new Error(res);
|
||||
}
|
||||
vm.searchResults = res.data;
|
||||
window.$gz.form.addNoSelectionItem(vm.searchResults);
|
||||
window.$gz.form.addNoSelectionItem(vm.searchResults, true);
|
||||
vm.replaceLastSelection();
|
||||
} catch (err) {
|
||||
window.$gz.errorHandler.handleFormError(err);
|
||||
|
||||
Reference in New Issue
Block a user