* [bug#63433] Return error when module is empty when create doc template.
This commit is contained in:
@@ -686,6 +686,7 @@ class doc extends control
|
||||
->setDefault('addedBy', $this->app->user->account)
|
||||
->setDefault('editedBy', $this->app->user->account)
|
||||
->get();
|
||||
if(empty($docData->module)) return $this->sendError(sprintf($this->lang->error->notempty, $this->lang->docTemplate->module));
|
||||
|
||||
if(!empty($docData->parent))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user