Problem with Saved Searches

Hi,

I can’t find anyone else writing about this problem, but it seems I have an issue with saved searches.

I’ve given my users access to LoadSavedSearch and ShowSavedSearches - furthermore the admins have the CreateSavedSearch and EditSavedSearches rights.

But for all users, I can’t see ANY stored searches in the “Load Saved Search:”-field in the QueryBuilder, however they are in the “RT at a glance”.

Anyone have any ideas how to fix this?

I’m running a pretty new version dragged from SVN about a week ago.

Cheers, Bjørn

I think when searches are saved, they are associated with you,
or with an RT group. Make sure you save in a group, and that the
other users are also in that same group, with the correct privs.

bobg

Hi

-----Original Message-----
From: rt-users-bounces@lists.bestpractical.com [mailto:rt-users-
bounces@lists.bestpractical.com] On Behalf Of Bob Goldstein

I think when searches are saved, they are associated with you,
or with an RT group. Make sure you save in a group, and that the
other users are also in that same group, with the correct privs.

I am aware of this.

It seems I’ve located the issue, but not a solution yet.

Line 58 of share/html/Search/Elements/SelectSearchesForObjects looks like this:
% my @searches = $object->Attributes->Named(‘SavedSearch’);

But when the queries are stored in the database, they go as these:
| id | name | description |
| 1 | Search - My Tickets | [_1] highest priority tickets I own |
| 2 | Search - Unowned Tickets | [_1] newest unowned tickets |
| 32 | Search - New Cases | New Cases |
| 34 | Search - Resolved Tickets | Resolved Tickets |
| 35 | SavedSearch | Rejected and Resolved Tickets |

The last one, 35, I’ve tried renaming to SavedSearch, and it now shows up.

I’ve attempted to change SelectSearchesForObjects to search for “Search - %” instead, but the wildcard isn’t working.

Anyone have a fix to this?

Cheers, Bjørn