Skip to content

Commit

Permalink
fix potential error in copy event
Browse files Browse the repository at this point in the history
(cherry picked from commit 9042d42)
  • Loading branch information
cbellone committed Jan 9, 2020
1 parent 44a9b30 commit c8aacff
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ function copyEventCtrl(EventService, $q, $templateCache, $filter, $http) {
for(var i = 0; i < splitted.length; i++) {
var c = splitted[i];
if(item.shortName.toLowerCase().indexOf(c) >= 0
|| item.displayName.toLowerCase().indexOf(c) >= 0
|| (item.displayName && item.displayName.toLowerCase().indexOf(c) >= 0)
|| $filter('formatDate')(item.formattedBegin).indexOf(c) >= 0
|| $filter('formatDate')(item.formattedEnd).indexOf(c) >= 0) {
return true;
Expand Down

0 comments on commit c8aacff

Please sign in to comment.