If there is something you want to clarify about the item, you can use note (like the ID does not belong to people using it).
Discussion is for things more relevant to history of the item than the real device (like information source).
Both note and discussion is optional.';
- genHtmlTail();
+ genHtmlFooter( 1, $req, $args );
return OK;
}
my $addr = PciIds::Address::new( $req->uri() );
genCustomHead( $req, $args, $addr, 'ID collision', [ [ 'Add other item', 'newitem' ], $addr->canDiscuss() ? [ 'Discuss', 'newhistory' ] : (), ], [ logItem( $auth ) ] );
print '<p>Sorry, this ID already exists.';
- genHtmlTail();
+ genHtmlFooter( 0, undef, undef );
return OK;
} elsif( $result ) {
return genNewItemForm( $req, $args, $auth, $tables, $result, $data );
}
notify( $tables, $data->{'address'}->parent()->get(), $comName, 2, 0 );#Notify the parent (parent gets new items)
- $tables->submitNotification( $auth->{'authid'}, $data->{'address'}->get(), { 'recursive' => 0, 'notification' => 1, 'way' => 0 } ) if( defined $data->{'subscribe'} && $data->{'subscribe'} eq 'subscribe' );
+ $tables->submitNotification( $auth->{'authid'}, $data->{'address'}->get(), { 'recursive' => 0, 'notification' => 0, 'way' => 0 } ) if( defined $data->{'subscribe'} && $data->{'subscribe'} eq 'subscribe' );
tulog( $auth->{'authid'}, "Item created ".$data->{'address'}->get()." ".logEscape( $data->{'name'} )." ".logEscape( $data->{'note'} )." ".logEscape( $data->{'discussion'} )." $comName" );
return HTTPRedirect( $req, '/read/'.$data->{'address'}->get().'?action=list' );
} else {
You must provide at last name or discussion or deletion request.
<p>
If you provide note, you must provide name too.';
- genHtmlTail();
+ genHtmlFooter( 1, $req, $args );
return OK;
}