From 1268074ec678c83c58baa437404c13b7d15cabcd Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Mon, 28 Dec 2015 05:12:01 +0100 Subject: get dropboxes now takes type names as used by output diff --git a/lib/RHRD/rddb.pm b/lib/RHRD/rddb.pm index 3ffb76a..1be87ac 100755 --- a/lib/RHRD/rddb.pm +++ b/lib/RHRD/rddb.pm @@ -890,7 +890,11 @@ sub get_dropboxes my @allowed_dbs; while(my ($group, $to_cart, $normlevel, $trimlevel, $params, $path, $lowcart, $highcart, $groupdesc) = $sth->fetchrow_array()) { my @p = split(';', $params); - next if (defined $type && $type ne $p[0]); + if (defined $type) { + if(!($type eq 'show' && $p[0] eq "S") && !($type eq 'jingle' && $p[0] eq "J") && !($type eq 'musicpool' && $p[0] eq "M")) { + next + } + } my $entry = {}; $entry->{'GROUP'} = $group; @@ -1127,7 +1131,7 @@ sub get_show_group_carts_used { my ($ctx, $groupname) = @_; - my @dropboxes = RHRD::rddb::get_dropboxes($ctx, undef, $groupname, 'S'); + my @dropboxes = RHRD::rddb::get_dropboxes($ctx, undef, $groupname, 'show'); if(!defined $dropboxes[0]) { if(defined $dropboxes[1]) { return (undef, $dropboxes[1], $dropboxes[2]); -- cgit v0.10.2