Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Contents Overview 3.3 getDir()
#3
(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
Reply


Messages In This Thread
Contents Overview 3.3 getDir() - by dhandler - 03-22-2012, 12:08 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)