* fix the error when create empty doc library.

* comment url, digest and so on fields.
This commit is contained in:
fujia
2010-08-03 02:15:43 +00:00
parent e5e034c839
commit 8baf48e423
3 changed files with 19 additions and 13 deletions
+9 -3
View File
@@ -87,9 +87,15 @@ class doc extends control
if(!empty($_POST))
{
$libID = $this->doc->createLib();
if(dao::isError()) die(js::error(dao::getError()));
$this->loadModel('action')->create('docLib', $libID, 'Created');
die(js::locate($this->createLink($this->moduleName, 'browse', "libID=$libID"), 'parent'));
if(!dao::isError())
{
$this->loadModel('action')->create('docLib', $libID, 'Created');
die(js::locate($this->createLink($this->moduleName, 'browse', "libID=$libID"), 'parent'));
}
else
{
echo js::error(dao::getError());
}
}
die($this->display());
}