03-22-2012, 12:54 PM
(03-22-2012, 03:43 AM)dhandler Wrote: I think I might have found the problem, but I am hoping that somebody more familiar with the code can confirm my fix or not.
Line 161 and 162 in inc.ClassDocument.php is currently:
if($this->_document->_dms->maxDirID) {
$dirid = (int) (($this->_id - 1) / $this->_document->_dms->maxDirID) + 1;
I changed the lines to read:
if($this->_dms->maxDirID) {
$dirid = (int) (($this->_id - 1) / $this->_dms->maxDirID) + 1;
My thought was that the maxDirID was not an inherited properly of a document, rather the DMS system as a whole. Making this change did get rid of the error messages.
Was I correct, or just lucky?
Thanks in advance.
It is a bug and a pretty obvious one. I wonder why this hasn't popped up before.
Thanks for reporting.
Uwe