From b9fdf852b095202c7433aba08c1b93a96585a4b4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bj=C3=B8rn=20Rustad?= Date: Wed, 21 Aug 2013 17:41:47 +0200 Subject: [PATCH] Select category when making line --- lib/Duplo/Line.pm | 5 +++-- templates/stage/stage.html.ep | 8 ++++++++ 2 files changed, 11 insertions(+), 2 deletions(-) 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 @@ + -- 2.47.3