Hi Tyler, Tyler Hepworth wrote:
I am playing with the multiple customer id feaute. I have noticed that any ticket I submit shows up in both "My Tickets" and "Company Tickets", regardless of the customer id.
Example
User: Tyler Hepworth Email: tylerh@natr.com CustomerID: tylerh@natr.com CustomerIDs: web
Ticket1, From: tylerh@natr.com, customer id: tylerh@natr.com Ticket2, From: tylerh@natr.com, customer id: web
Tickets shown in "My Tickets" ------------------------------------------ Ticket1, Ticket2
Tickets shown in "Company Tickets" --------------------------------------------------- Ticket1, Ticket2
Should the correct way to display tickets be?: --------------------------------------------------------------- "My Tickets" - Ticket1 "Company Tickets" - Ticket2
or since Ticket2 technically is my ticket: ----------------------------------------------------------- "My Tickets" - Ticket1, Ticket2 "Company Tickets" - Ticket2
IMO the latest one would be ok. The problem is, in OTRS 1.3 the CustomerIDs includes the primary customer id (see Kernel/System/CustomerUser/*.pm -> CustomerIDs()). I updated the CVS head to work also "just" with secundary customer id's in CustomerIDs(). -=> So if you write you own Kernel/System/CustomerUser/XXX.pm where CustomerIDs() returns just "secundary" customer id's. Or if you modify Kernel/System/CustomerUser/*.pm to not return the primary customer id, the the example would be like this: User: Tyler Hepworth Email: tylerh@natr.com CustomerID: tylerh@natr.com CustomerIDs: web Ticket1, From: tylerh@natr.com, customer id: tylerh@natr.com Ticket2, From: tylerh@natr.com, customer id: web Then the cp view is: ----------------------------------------------------------- "My Tickets" - Ticket1, Ticket2 "Company Tickets" - Ticket2
If there some other explanation for this behavior, please let me know.
If this is a bug, I am willing to work up a patch and submit it if you are agreeable to that.
Any patches are welcome. (Just in this case i was think that it was easier to do it driectly.) :)
Tyler Hepworth
Martin Edenhofer -- ((otrs.de)) :: OTRS GmbH :: Norsk-Data-Str. 1 :: 61352 Bad Homburg http://www.otrs.de/ :: Manage your communication!