mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-14 21:51:32 +00:00
getPath() works propperly even if root id is not 1
getPath doesn't return any folders above the root id even if they exist
This commit is contained in:
parent
5e17cf150f
commit
44164ebf40
|
@ -437,7 +437,7 @@ class SeedDMS_Core_Folder extends SeedDMS_Core_Object {
|
||||||
* @return array Array of parents
|
* @return array Array of parents
|
||||||
*/
|
*/
|
||||||
function getPath() { /* {{{ */
|
function getPath() { /* {{{ */
|
||||||
if (!isset($this->_parentID) || ($this->_parentID == "") || ($this->_parentID == 0)) {
|
if (!isset($this->_parentID) || ($this->_parentID == "") || ($this->_parentID == 0) || ($this->_id == $this->_dms->rootFolderID)) {
|
||||||
return array($this);
|
return array($this);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user