Commit 4c4e4397e8458bedab64d9f5fb06effb8255a2af

Authored by conradverm
1 parent 74a29f87

KTS-673

"The search algorithm needs some work"
Updated. use path of document as it includes the full path

Committed By: Conrad Vermeulen
Reviewed By: Kevin Fourie

git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@7528 c91229c3-7414-0410-bfa2-8a42b809f60b
search2/search/fields/FolderField.inc.php
@@ -4,10 +4,8 @@ class FolderField extends DBFieldExpr @@ -4,10 +4,8 @@ class FolderField extends DBFieldExpr
4 { 4 {
5 public function __construct() 5 public function __construct()
6 { 6 {
7 - parent::__construct('folder_id', 'documents', _kt('Folder')); 7 + parent::__construct('full_path', 'documents', _kt('Folder'));
8 $this->setAlias('Folder'); 8 $this->setAlias('Folder');
9 - $this->joinTo('folders', 'id');  
10 - $this->matchField('full_path');  
11 } 9 }
12 10
13 public function getInputRequirements() 11 public function getInputRequirements()