PDA

View Full Version : Owner filter


aquivoy
20-10-04, 01:30 AM
Hi!!!
I would like to set up the “owner filter” as “All” (in the company module, for the case of a new user), the problem with “name of the user” is due to every time you need again to re-filter the module, and it is a lite bit annoy (from the user point of view). Is this possible?

regards..

wlanni
08-10-05, 07:42 AM
Hello Aquivoy,

I would like to do the same. I found this entry in the Tiki

http://sites.sakienvirotech.com/dp_docs/tiki/tiki-index.php?page=Change%20Default%20Company%20Filter

However, the code that it quotes to change is not the same in 2.0.1

Basically, when a user goes to view companies, I would like the default filter to be set to "All", not set to that user.

Thanks!

darnolds
25-10-05, 04:49 PM
Is there a solution for this problem in 2.0.1 yet? I can't seem to find it...

Gonçalo
25-10-05, 07:38 PM
I was looking for this myself, and I think I've got it to work. In the second "if" statement of index.php, where it reads,

$owner_filter_id = $AppUI->user_id;

simply change it to,

$owner_filter_id = 0;

Hope this helps.

darnolds
26-10-05, 05:21 PM
Thanks,

I already found another way :)

I changed the same statement to
$owner_filter_id = $AppUI->_('All');

wlanni
27-10-05, 04:04 AM
thank you, thank you, THANK YOU both. Oh my goodness thank you. If I could buy you beer I would. In fact, if you're anywhere in the Northwest USA, and want a beer, come to the Blue Moon in Seattle on Friday night. My band is playing, (we're Stay Tuned, www.staytunedtheband.com), tell me you're the one who wrote one of the fixes to show all companies, and I will buy you a beer.

Thanks again!!!!!!