From: Bjørn Rustad Date: Wed, 21 Aug 2013 15:41:47 +0000 (+0200) Subject: Select category when making line X-Git-Url: http://git.rustad.me/?a=commitdiff_plain;h=b9fdf852b095202c7433aba08c1b93a96585a4b4;p=duplo Select category when making line --- diff --git a/lib/Duplo/Line.pm b/lib/Duplo/Line.pm index 3c11b38..4a00ceb 100644 --- a/lib/Duplo/Line.pm +++ b/lib/Duplo/Line.pm @@ -7,12 +7,13 @@ sub new_line { my $stage = $self->param('stage'); my $type = $self->param('type'); my $name = $self->param('name'); + my $category = $self->param('category'); $dbh->do(" INSERT INTO - line (stage, type, name) + line (stage, type, name, category) VALUES (?, ?, ?) - ", undef, $stage, $type, $name); + ", undef, $stage, $type, $name, $category); return $self->redirect_to('stage', stage => $stage); } diff --git a/templates/stage/stage.html.ep b/templates/stage/stage.html.ep index 6f3089c..239dd4c 100644 --- a/templates/stage/stage.html.ep +++ b/templates/stage/stage.html.ep @@ -85,6 +85,14 @@ +