When I look at the user prefs for the UserSendNewTicketNotification I can choose between <blank> Yes and No. Blank whas selected which is an odd choise!. When I change this to yes, I don't get any new ticket notifications anymore.
the html code from the browser:
Code: Select all
<select id="UserSendNewTicketNotification" name="UserSendNewTicketNotification">
<option value="" selected="selected" title=""></option>
<option value="1" title="Yes">Yes</option>
<option value="0" title="No">No</option>
</select>
BEFORE THE YES selection
Code: Select all
mysql> select * from user_preferences where user_id=2 and preferences_key="UserSendNewTicketNotification";
+---------+-------------------------------+-------------------+
| user_id | preferences_key | preferences_value |
+---------+-------------------------------+-------------------+
| 2 | UserSendNewTicketNotification | MyQueues |
+---------+-------------------------------+-------------------+
1 row in set (0.00 sec)
Code: Select all
mysql> select * from user_preferences where user_id=2 and preferences_key="UserSendNewTicketNotification";
+---------+-------------------------------+-------------------+
| user_id | preferences_key | preferences_value |
+---------+-------------------------------+-------------------+
| 2 | UserSendNewTicketNotification | 1 |
+---------+-------------------------------+-------------------+
1 row in set (0.00 sec)
Another thing that has probably something to do with this. I get errors with otrs.PostMastermailbox.pl:
Code: Select all
ERROR: OTRS-otrs.PostMasterMailbox.pl-12 Perl: 5.14.2 OS: linux Time: Tue Oct 13 16:10:03 2015
Message: Invalid UserSendNewTicketNotification option '1' for user 'u0080681'
Traceback (5779):
Module: Kernel::System::Ticket::Article::ArticleCreate Line: 544
Module: Kernel::System::PostMaster::NewTicket::Run Line: 428
Module: Kernel::System::PostMaster::Run Line: 368
Module: Kernel::System::MailAccount::POP3::Fetch Line: 216
Module: Kernel::System::MailAccount::MailAccountFetch Line: 441
Module: main::Fetch Line: 171
Module: /opt/otrs//bin/otrs.PostMasterMailbox.pl Line: 85
Code: Select all
if ( $UserData{UserSendNewTicketNotification} eq 'MyQueues' ) {
next USER if !$MyQueuesUserIDs{$UserID};
}
elsif ( $UserData{UserSendNewTicketNotification} eq 'MyServices' )
next USER if !$MyServicesUserIDs{$UserID};
}
elsif ( $UserData{UserSendNewTicketNotification} eq 'MyQueuesOrMySe
next USER if !$MyQueuesUserIDs{$UserID} && !$MyServicesUserIDs{
}
elsif ( $UserData{UserSendNewTicketNotification} eq 'MyQueuesAndMyS
next USER if !$MyQueuesUserIDs{$UserID} || !$MyServicesUserIDs{
}
else {
$Kernel::OM->Get('Kernel::System::Log')->Log(
Priority => 'error',
Message => "Invalid UserSendNewTicketNotification option"
. " '$UserData{UserSendNewTicketNotification}'"
. " for user '$UserData{UserLogin}' ",
);
next USER;
}
Is this a bug or is something seriously wrong with my installation?
Some more info for another preference_key (also MyQueues):
Code: Select all
mysql> select * from user_preferences where user_id=2 and preferences_key="UserSendFollowUpNotification";
+---------+------------------------------+-------------------+
| user_id | preferences_key | preferences_value |
+---------+------------------------------+-------------------+
| 2 | UserSendFollowUpNotification | MyQueues |
+---------+------------------------------+-------------------+
1 row in set (0.00 sec)