cognidox / OTRS-Joomla-Gateway

Provides seamless access to OTRS tickets through Joomla
https://www.cognidox.com/
10 stars 3 forks source link

Queue and priority fields are not available when using e-mail as the user mapping #6

Closed vittala closed 13 years ago

vittala commented 13 years ago

If the component is set to use e-mail as the user mapping, the To and Priority fields on ticket submission are not available.

vittala commented 13 years ago

Possible patch:

--- a/otrs_joomla_module/Kernel/System/JoomlaGateway.pm 
+++ b/otrs_joomla_module/Kernel/System/JoomlaGateway.pm
@@ -157,6 +157,9 @@ sub GetTicketQueues {
 # customer(s) of the user here
 sub GetCustomerUserData {
     my ( $Self, %Param ) = @_;
+    if ( !exists $Param{'PostMasterSearch'} && exists $Param{'UserEmail'} ) {
+        $Param{'PostMasterSearch'} = $Param{'UserEmail'};
+    }
     my %user = $Self->{'CustomerUserObject'}->CustomerSearch(%Param);
     if (!%user) {
         return undef;
vittala commented 13 years ago

This fix is now in release 0.9.1