# we've got the comment, so let's name it
my $unique_str = $comment->Inserted . $issue->Description;
$comment->set_name( substr(md5_hex($unique_str), 0, 8) );
+
+ # finally, tell it who it's parent is and then save
+ $comment->Issue( $issue->name );
$comment->save($cil);
# add the comment to the issue, update it's timestamp and save it out
sub display_issue_full {
my ($cil, $issue) = @_;
- display_issue( $cil, $issue );
+ separator();
+ title( 'Issue ' . $issue->name() );
+ field( 'Summary', $issue->Summary() );
+ field( 'Status', $issue->Status() );
+ field( 'CreatedBy', $issue->CreatedBy() );
+ field( 'AssignedTo', $issue->AssignedTo() );
+ field( 'Label', $_ )
+ foreach sort @{$issue->Label()};
+ field( 'Inserted', $issue->Inserted() );
+ field( 'Updated', $issue->Inserted() );
+ text('Description', $issue->Description());
+ separator();
my $comments = $cil->get_comments_for( $issue );
foreach my $comment ( @$comments ) {