This commit is contained in:
2020-02-13 00:02:03 +00:00
parent 3edb54e568
commit c5ff23a25c
3 changed files with 25 additions and 2 deletions

View File

@@ -681,5 +681,15 @@ export default {
if (formSettings.temp) {
sessionStorage.setItem(formKey, JSON.stringify(formSettings.temp));
}
}, ////////////////////////////////////
// Add no selection item
// Used by forms that need the option of an unselected
// item in a pick list
//
addNoSelectionItem(listArray) {
if (listArray == undefined || listArray == null) {
listArray = [];
}
listArray.unshift({ name: "-", id: 0 });
}
};