| 502 |
sprintf '%04d-%02d-%02d %02d:%02d:%02d +00:00', |
sprintf '%04d-%02d-%02d %02d:%02d:%02d +00:00', |
| 503 |
$time[5]+1900,$time[4]+1,@time[3,2,1,0]; |
$time[5]+1900,$time[4]+1,@time[3,2,1,0]; |
| 504 |
push @page, ''; |
push @page, ''; |
| 505 |
push @page, '[1] ' . $o->{wiki}->{input}->parameter ('body'); |
push @page, '[1] ' . "\n" . $o->{wiki}->{input}->parameter ('bt--body'); |
| 506 |
$wiki->{db}->set (content => $o->{bt__bug}->{bug_page} |
$wiki->{db}->set (content => $o->{bt__bug}->{bug_page} |
| 507 |
=> join "\x0A", @page); |
=> join "\x0A", @page); |
| 508 |
$wiki->{db}->set (lastmodified => $o->{bt__bug}->{bug_page} |
$wiki->{db}->set (lastmodified => $o->{bt__bug}->{bug_page} |
| 514 |
|
|
| 515 |
require SuikaWiki::Output::HTTP; |
require SuikaWiki::Output::HTTP; |
| 516 |
my $output = SuikaWiki::Output::HTTP->new (wiki => $self->{view}->{wiki}); |
my $output = SuikaWiki::Output::HTTP->new (wiki => $self->{view}->{wiki}); |
| 517 |
$output->set_redirect (uri => $uri, status_code => 303); |
$output->set_redirect (uri => $uri, status_code => 303, |
| 518 |
|
status_phrase => q(Created)); |
| 519 |
## Should we use 201 Created? |
## Should we use 201 Created? |
| 520 |
$output->output (output => 'http-cgi'); |
$output->output (output => 'http-cgi'); |
| 521 |
@@Name: main |
@@Name: main |
| 570 |
label=>{%res (name => {BugTrack:CreateForm:MainText:Label});}p, |
label=>{%res (name => {BugTrack:CreateForm:MainText:Label});}p, |
| 571 |
); |
); |
| 572 |
%submit (label => {%res (name => {Form:Label:Add});}p, |
%submit (label => {%res (name => {Form:Label:Add});}p, |
| 573 |
description => {%res (name => {Form:Label:Description});}p); |
description => {%res (name => {Form:Description:Add});}p); |
| 574 |
}p); |
}p); |
| 575 |
@BugTrack:CreateForm:MainText:Label: |
@BugTrack:CreateForm:MainText:Label: |
| 576 |
@@@: Bug description |
@@@: Bug description |