Skip to content

Commit

Permalink
Fixed remove of mention and unnecessary errors in the log. (#295)
Browse files Browse the repository at this point in the history
Co-authored-by: Denny Korsukéwitz <dennykorsukewitz@gmail.com>
Co-authored-by: Niklas <ns@znuny.com>
  • Loading branch information
3 people authored Jul 27, 2023
1 parent 31b426c commit 4e4b5a0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Kernel/System/Mention.pm
Original file line number Diff line number Diff line change
Expand Up @@ -645,7 +645,7 @@ sub GetMentionedUserIDsFromString {
push @UniqueMentionedUsers, $MentionedUser;
}

if ( $Param{Limit} ) {
if ( $Param{Limit} && @UniqueMentionedUsers > $Param{Limit} ) {
@UniqueMentionedUsers = @UniqueMentionedUsers[ 0 .. $Param{Limit} - 1 ];
}

Expand Down
3 changes: 2 additions & 1 deletion var/httpd/htdocs/js/Znuny.Agent.MentionAction.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ Znuny.Agent.MentionAction = (function (TargetNS) {
};

$('.MentionRow').each(function() {
$(this).on('click', function() {
$(this).on('click', function(Event) {
Event.preventDefault();
Data.MentionedUserID = $(this).attr('data-user-id');

Core.AJAX.FunctionCall(
Expand Down
4 changes: 3 additions & 1 deletion var/httpd/htdocs/js/Znuny.Agent.TicketMention.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ Znuny.Agent.TicketMention = (function (TargetNS) {
BulkAction: 1
};

$('#RemoveMention').on('click',function(){
$('#RemoveMention').on('click',function(Event){
Event.preventDefault();

$('.MasterAction').each(function(){
var TicketID = $(this).attr('id').replace('TicketID_', '');
Data.TicketID = TicketID;
Expand Down

0 comments on commit 4e4b5a0

Please sign in to comment.