Revision: 863
http://cs-project.svn.sourceforge.net/cs-project/?rev=863&view=rev
Author: crazedsanity
Date: 2008-03-30 15:13:52 -0700 (Sun, 30 Mar 2008)
Log Message:
-----------
Fix a logic error when retrieving record_id from an ancestry string with 0 parents.
FIXES ISSUE:::
#165: Fatal error retrieving tod records on issue with root-level ancestry
SVN COMMAND:
merge -r861:862 https://cs-project.svn.sourceforge.net/svnroot/cs-project/trunk/1.
/lib/mainRecordClass.php:
* get_parent_from_ancestry():
-- extra check check so if there are no ":" characters in the ancestry
string, but $goBackLevels is 0 (given the ancestry string is numeric),
it will simply return the value of the given string.
Modified Paths:
--------------
releases/1.1/lib/mainRecordClass.php
Modified: releases/1.1/lib/mainRecordClass.php
===================================================================
--- releases/1.1/lib/mainRecordClass.php 2008-03-30 22:03:03 UTC (rev 862)
+++ releases/1.1/lib/mainRecordClass.php 2008-03-30 22:13:52 UTC (rev 863)
@@ -597,6 +597,9 @@
}
}
}
+ elseif(!preg_match('/:/', $ancestryString) && is_numeric($ancestryString)) {
+ $retval = $ancestryString;
+ }
return($retval);
}//end get_parent_from_ancestry()
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|