Commit 89eb449fd04003b3ae8a77748c83847dc5c4ec53

Authored by kevin_fourie
1 parent 4b606888

Merged in from DEV trunk...

WSA-119
"get_listing() function failing on a directory containing a document assigned to a workflow state"
Fixed.

Committed By: Conrad Vermeulen
Reviewed By: Philip Arkoll


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/STABLE/branches/3.5.2c-Release-Branch@8426 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing 1 changed file with 1 additions and 1 deletions
ktapi/KTAPIFolder.inc.php
... ... @@ -494,7 +494,7 @@ class KTAPI_Folder extends KTAPI_FolderItem
494 494 $ws=KTWorkflowUtil::getWorkflowStateForDocument($document);
495 495 if (!is_null($ws) && !PEAR::isError($ws))
496 496 {
497   - $state=$state->getHumanName();
  497 + $state=$ws->getHumanName();
498 498 }
499 499 }
500 500  
... ...