bestpractical/rt — pull request #95 by cloos (2014-04-29 16:03:16+00:00)
Title: fix owner dropdown warning for ticket search without queue clause

3056568 introduced switching to autocompleter if we have more than 50 owners.
The commit missed that Search/Build.html (Search/Elements/PickBasics) also use
the SelectOwner element and pass an empty Queues hash, if the query doesn't have
a queue clause (which is the case if you create a new ticket search).
In the above case the SelectOwner element pass an empty queue object as Objects
to the SelectOwnerDropdown which results in loading every user with OwnTicket
rights.

This commit fixes "Use of uninitialized value in concatenation" warnings on
ticket search without a queue clause in the query.
It also avoids the "More than 50 possible Owners found ..." notice on new
ticket search if you have more than 50 users with the OwnTicket right.