This commit is contained in:
2020-11-14 00:58:43 +00:00
parent f0a64aad8c
commit 17f20d5d2e
5 changed files with 78 additions and 7 deletions

View File

@@ -979,11 +979,11 @@ export default {
// Used by forms that need the option of an unselected
// item in a pick list
//
addNoSelectionItem(listArray) {
addNoSelectionItem(listArray, nullNotZero) {
if (listArray == undefined || listArray == null) {
listArray = [];
}
listArray.unshift({ name: "-", id: 0 });
listArray.unshift({ name: "-", id: nullNotZero ? null : 0 });
},
////////////////////////////////////
// Get validity of referenced control