File tree 2 files changed +11
-6
lines changed
2 files changed +11
-6
lines changed Original file line number Diff line number Diff line change 8
8
- fixed #12385: UTF-8 characters in Asset title break the Trash
9
9
- fixed ... and the same problem in the Clipboard
10
10
- fixed: UpdateAssetSubscribers workflow activity ERRORs if the group cannot be found.
11
+ - fixed: EMS has issues showing badges WITHOUT related badge groups.
11
12
12
13
7.10.26
13
14
- fixed: Template diagnostics when called without a session asset.
Original file line number Diff line number Diff line change @@ -872,9 +872,11 @@ sub www_addTicketsToBadge {
872
872
my $badge = WebGUI::Asset-> new($session , $assetId , ' WebGUI::Asset::Sku::EMSBadge' );
873
873
if ( defined $badge ) {
874
874
my @badgeGroups = split (" \n " ,$badge -> get(' relatedBadgeGroups' ));
875
- %badgeGroups = $db -> buildHash(
876
- " SELECT badgeGroupId, ticketsPerBadge FROM EMSBadgeGroup WHERE badgeGroupId IN (" . $db -> quoteAndJoin(\@badgeGroups ) . " )" ,
877
- );
875
+ if (@badgeGroups ) {
876
+ %badgeGroups = $db -> buildHash(
877
+ " SELECT badgeGroupId, ticketsPerBadge FROM EMSBadgeGroup WHERE badgeGroupId IN (" . $db -> quoteAndJoin(\@badgeGroups ) . " )" ,
878
+ );
879
+ }
878
880
}
879
881
}
880
882
@@ -1909,9 +1911,11 @@ className='WebGUI::Asset::Sku::EMSTicket' and state='published' and revisionDate
1909
1911
my $badge = WebGUI::Asset-> new($session , $assetId , ' WebGUI::Asset::Sku::EMSBadge' );
1910
1912
if ( defined $badge ) {
1911
1913
my @badgeGroups = split (" \n " ,$badge -> get(' relatedBadgeGroups' ));
1912
- %badgeGroups = $db -> buildHash(
1913
- " SELECT badgeGroupId, ticketsPerBadge FROM EMSBadgeGroup WHERE badgeGroupId IN (" . $db -> quoteAndJoin(\@badgeGroups ) . " )" ,
1914
- );
1914
+ if (@badgeGroups ) {
1915
+ %badgeGroups = $db -> buildHash(
1916
+ " SELECT badgeGroupId, ticketsPerBadge FROM EMSBadgeGroup WHERE badgeGroupId IN (" . $db -> quoteAndJoin(\@badgeGroups ) . " )" ,
1917
+ );
1918
+ }
1915
1919
}
1916
1920
}
1917
1921
You can’t perform that action at this time.
0 commit comments