We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 48577f2 commit e0d898dCopy full SHA for e0d898d
extensions/BzAPI/lib/Resources/Bug.pm
@@ -587,6 +587,12 @@ sub add_attachment_request {
587
}
588
589
590
+
591
+ # Add comment if one is provided
592
+ if (exists $params->{comments} && scalar @{ $params->{comments} }) {
593
+ $params->{comment} = $params->{comments}->[0]->{text};
594
+ delete $params->{comments};
595
+ }
596
597
598
sub update_attachment_request {
@@ -613,8 +619,9 @@ sub update_attachment_request {
613
619
614
620
615
621
622
616
623
# Add comment if one is provided
617
- if ($params->{comments}) {
624
618
625
$params->{comment} = $params->{comments}->[0]->{text};
626
delete $params->{comments};
627
0 commit comments