Commit c4510c8afdbb7435fa507c5ce0fddcb10cd6dbd1

Authored by conradverm
1 parent 82e8d9b5

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/trunk@8369 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  
... ...