Skip to content

Commit

Permalink
removed no_render fields
Browse files Browse the repository at this point in the history
  • Loading branch information
Zbigniew Lukasiak committed Jun 18, 2009
1 parent f48ff66 commit 2c88dd4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
4 changes: 2 additions & 2 deletions lib/CatalystX/Comments/ControllerFormRole.pm
Expand Up @@ -9,10 +9,10 @@ sub stash_comment_form {
);
if( $c->req->method eq 'POST' ){
my $params = $c->req->params;
$params->{article_id} = $article_id;
$params->{remote_ip} = $c->req->address;
$form->params( $params );
if( $form->process ){
my $comment = $form->item;
$comment->update( { article_id => $article_id, remote_ip => $c->req->address } );
$c->res->redirect( $c->uri_for($c->action, $c->req->captures) );
}
}
Expand Down
3 changes: 0 additions & 3 deletions lib/CatalystX/Comments/Form.pm
Expand Up @@ -30,9 +30,6 @@ has_field 'comment' => (
rows => 10
);

has_field article_id => ( widget => 'no_render' );
has_field remote_ip => ( widget => 'no_render' );

has_field 'submit' => (
type => 'Submit',
value => 'Save'
Expand Down

0 comments on commit 2c88dd4

Please sign in to comment.