Commit 32a89fa2355968cb34f00a92ff373432bc62aae8
1 parent
00667c36
do not include conditions in user-searches.
git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@5633 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
1 additions
and
1 deletions
lib/search/savedsearch.inc.php
| ... | ... | @@ -149,7 +149,7 @@ class KTSavedSearch extends KTEntity { |
| 149 | 149 | function &getUserSearches($iUserId, $bNoSystem = false) { |
| 150 | 150 | $sQuery = sprintf('user_id = %d', $iUserId); |
| 151 | 151 | if(!$bNoSystem) { |
| 152 | - $sQuery .= ' OR user_id IS NULL'; | |
| 152 | + $sQuery .= ' OR user_id IS NULL AND is_condition = 0'; | |
| 153 | 153 | } |
| 154 | 154 | |
| 155 | 155 | return KTEntityUtil::getList2('KTSavedSearch', $sQuery, array('orderby' => 'user_id, name')); | ... | ... |