Fix so registration works.
authorSteinar H. Gunderson <sesse@samfundet.no>
Mon, 14 Feb 2005 15:29:10 +0000 (15:29 +0000)
committerSteinar H. Gunderson <sesse@samfundet.no>
Mon, 14 Feb 2005 15:29:10 +0000 (15:29 +0000)
html/do-registration.pl
html/registration.pl
html/templates/registration.tmpl

index a81e48a..36c5e2f 100755 (executable)
@@ -14,6 +14,6 @@ my $paid = $cgi->param('paid');
 $dbh->do('INSERT INTO tournamentparticipation (tournament, player, paid) VALUES (?,?,?)',
        undef, $tournament, $player, $paid);
 
-ccbs::print_see_other('registration.pl?id=$tournament');
+ccbs::print_see_other('registration.pl?id=' . $tournament);
 
 $dbh->disconnect;
index d16ee2a..1a7ba77 100755 (executable)
@@ -15,6 +15,7 @@ my $available = ccbs::db_fetch_all($dbh, 'SELECT * FROM players WHERE player NOT
 
 ccbs::print_header();
 ccbs::process_template('registration.tmpl', $tournament->{'tournamentname'}, {
+       tournament => $tournament,
        registered => $registered,
        available => $available
 });
index c2d873b..7d21ee5 100644 (file)
@@ -3,7 +3,7 @@
 
 <div>
 <form method="post" action="do-registration.pl">
-  <input type="hidden" name="tournament" value="[% tournament.id %]" />
+  <input type="hidden" name="tournament" value="[% tournament.tournament %]" />
   <table>
     <tr>
       <th>Spiller</th>