diff --git a/module/tree/control.php b/module/tree/control.php index 5cf932e883..3bc2859d6f 100644 --- a/module/tree/control.php +++ b/module/tree/control.php @@ -102,8 +102,9 @@ class tree extends control elseif(strpos($viewType, 'caselib') !== false) { $this->loadModel('caselib'); - $lib = $this->caselib->getById($rootID); - $this->view->root = $lib; + $lib = $this->caselib->getById($rootID); + $this->view->root = $lib; + $this->view->libID = $rootID; } if($viewType == 'story')