
On 27.11.2012 13:46, Martin Gruner wrote: Sorry, I've missed the actual code during too many 'cvs annotate -r...' requests, all mixed in my head. Yes, it's processed. But, what should I do to achieve 'Company Tickets' working from LDAP groups? We have agents in MySQL DB and all customers are in LDAP. I've saw a part of all users, about 200 of them, in 'group_customer_user' in DB, all added at the very same moment of time (by somebody before me seeral months ago). The manual isn't clear here, what can I do with these groups for my goal ? I've see that CustomerTicketOverview.pm passes *both* CustomerID and CustomerUserID, and TicketSearch(), on CustomerUserID, calls GroupMemberList(). So, I thought, user can see at least something in his 'company tickets'. But I've asked a user, and user said there were always 0 tickets in that interface. Where am I wrong?..
I cannot confirm this. TicketSearch() correctly processes CustomerID, I even added a unit test to verify this - if an invalid CustomerID is sent, the ticket is not found. You can see this if you print the generated SQL string.
Regards, mg
Am 26.11.12 17:20, schrieb Vadim S. Goncharov:
Hi,
I've found that Kernel/Modules/CustomerTicketOverview.pm still calls:
CompanyTickets => { All => { Name => 'All', Prio => 1000, Search => { CustomerID => [ $Self->{CustomerUserObject}->CustomerIDs( User => $Self->{UserLogin} ) ], OrderBy => $Self->{OrderBy}, SortBy => $Self->{SortBy}, CustomerUserID => $Self->{UserID},
but TicketSearch() routine has stopped to process 'CustomerID' in rev. 1.197, it is completely ignored for years ago.
What I was actually trying to do when found this - I was trying to make work "My Company Tickets" feature. The intuitive way of setting "company" field to group borrowed from LDAP group:
[ 'UserCustomerID', 'CustomerID', 'mail', 1, 1, 'var', '', 0 ], [ 'UserCustomerIDs', 'CustomerIDs', 'ou', 1, 1, 'var', '', 0 ],
didn't work...
--
Vadim Goncharov