This commit is contained in:
2020-04-19 23:10:09 +00:00
parent 3b212b16c3
commit 683e117187
4 changed files with 17 additions and 10 deletions

View File

@@ -564,12 +564,12 @@ export default {
// NOTE: that in a form this should only be used with non stock-required fields, if they are already required they cannot be hidden
//
showMe(vm, formCustomTemplateFieldName) {
//special check for wikiContent
//special check for wiki field
//if read only then can't add any content and if no content then no reason to show it at all
if (formCustomTemplateFieldName == "wikiContent") {
if (formCustomTemplateFieldName == "wiki") {
if (
vm.formState.readOnly &&
(vm.obj.wikiContent == null || vm.obj.wikiContent.length == 0)
(vm.obj.wiki == null || vm.obj.wiki.length == 0)
) {
return false;
}