diff options
author | Yorhel <git@yorhel.nl> | 2009-08-18 09:23:11 +0200 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2009-08-18 09:23:11 +0200 |
commit | 6be3db128ffa7c16ff4967ddf08a8577d9f25eaf (patch) | |
tree | 385184908592f267fe5e44e01f0d99353c18df66 /lib/VNDB/Handler/Producers.pm | |
parent | e7a73f04525ad18b0bd2be8996431ecaf8eff330 (diff) |
htmlForm(): Don't generate subform id from the title
The subform id is now passed to htmlForm() as first formpart item. This
way the id won't change even if the title does, which will be the case
with the interface translation.
Diffstat (limited to 'lib/VNDB/Handler/Producers.pm')
-rw-r--r-- | lib/VNDB/Handler/Producers.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VNDB/Handler/Producers.pm b/lib/VNDB/Handler/Producers.pm index 1b192e2d..c6d507e2 100644 --- a/lib/VNDB/Handler/Producers.pm +++ b/lib/VNDB/Handler/Producers.pm @@ -133,7 +133,7 @@ sub edit { $self->htmlHeader(title => $title, noindex => 1); $self->htmlMainTabs('p', $p, 'edit') if $pid; $self->htmlEditMessage('p', $p, $title); - $self->htmlForm({ frm => $frm, action => $pid ? "/p$pid/edit" : '/p/new', editsum => 1 }, mt('_pedit_form_generalinfo') => [ + $self->htmlForm({ frm => $frm, action => $pid ? "/p$pid/edit" : '/p/new', editsum => 1 }, 'pedit_geninfo' => [mt('_pedit_form_generalinfo'), [ select => name => mt('_pedit_form_type'), short => 'type', options => [ map [ $_, mt "_ptype_$_" ], sort @{$self->{producer_types}} ] ], [ input => name => mt('_pedit_form_name'), short => 'name' ], |