summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2016-09-14 14:54:54 (GMT)
committerChristian Pointner <equinox@helsinki.at>2016-09-14 14:54:54 (GMT)
commit0966b894742c543b0a6a8ecb854dcaaea6813e15 (patch)
tree3ee713494cc6aef4e11484ba32349e3d2a1f196d /lib
parent20ff694433ef9f658cc58da64484f008f95545da (diff)
adding multi-show works now
Diffstat (limited to 'lib')
-rwxr-xr-xlib/RHRD/rddb.pm10
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/RHRD/rddb.pm b/lib/RHRD/rddb.pm
index 62f43bd..38abb1d 100755
--- a/lib/RHRD/rddb.pm
+++ b/lib/RHRD/rddb.pm
@@ -149,6 +149,12 @@ sub get_cart_range
return ($low_cart, $high_cart, $chunk_size);
}
+sub get_showid_range
+{
+ my ($ctx) = @_;
+ return get_cart_range($ctx, $ctx->{'config'}{'specialgroups'}{'shows'})
+}
+
sub get_next_free_slot
{
my ($ctx, $groupname) = @_;
@@ -1984,7 +1990,7 @@ sub list_multi_shows
my $entry = {};
$entry->{'ID'} = $id;
$entry->{'TITLE'} = $title;
- $entry->{'SHOWS'} = @showlist;
+ $entry->{'SHOWS'} = \@showlist;
push @mshows, $entry;
}
@@ -2024,7 +2030,7 @@ sub create_multi_show
{
my $ctx = shift;
my $title = shift;
- my $shows = join(@_, ";");
+ my $shows = join(";", @_);
my ($number, $status, $errorstring) = get_next_free_multi_showid($ctx);
unless (defined $number) {