mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-06 15:14:58 +00:00
call hoock postEditDocument even after hook editDocument
This commit is contained in:
parent
98c1220260
commit
e91dd1c09c
|
@ -165,11 +165,14 @@ class SeedDMS_Controller_EditDocument extends SeedDMS_Controller_Common {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!$this->callHook('postEditDocument')) {
|
} elseif($result === false) {
|
||||||
}
|
if(empty($this->errormsg))
|
||||||
|
$this->errormsg = 'hook_editDocument_failed';
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
} else
|
if(!$this->callHook('postEditDocument')) {
|
||||||
return $result;
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user