* [bug#51144,done,0.2h] Determine if the document type is an Office type rather than a document library type.
This commit is contained in:
@@ -963,7 +963,7 @@ class docModel extends model
|
||||
|
||||
$requiredFields = $this->config->doc->create->requiredFields;
|
||||
if($doc->status == 'draft') $requiredFields = 'title';
|
||||
if(strpos("url|word|ppt|excel", $lib->type) !== false) $requiredFields = trim(str_replace(",content,", ",", ",{$requiredFields},"), ',');
|
||||
if(strpos("url|word|ppt|excel", $doc->type) !== false) $requiredFields = trim(str_replace(",content,", ",", ",{$requiredFields},"), ',');
|
||||
|
||||
$checkContent = strpos(",$requiredFields,", ',content,') !== false;
|
||||
if($checkContent && strpos("url|word|ppt|excel|", $lib->type) === false)
|
||||
|
||||
Reference in New Issue
Block a user