Hi,

There are some parameters passed to Bugzilla::Bug->add_comment() which Max
has mentioned are not necessary - and I suspect they may have something to
do with resetting some of bug's attributes. I.e. I would suggest trying:
$bug->add_comment( $comment );
instead of
$bug->add_comment( $comment, {isprivate => 0, work_time => 0, type =>
Bugzilla::Constants->CMT_NORMAL, extra_data => ""} );

I'm attaching my patched version for reference (it includes other
customizations not related to this issue; I've already uploaded just the
add_comment change as patch earlier).

Regards,
Yavor

On Mon, Jul 19, 2010 at 18:16, Kristis Makris <[email protected]> wrote:

> Hello,
>
> This sounds like a serious problem.
>
> http://bugzilla.mkgnu.net/show_bug.cgi?id=1483
>
> On Mon, 2010-07-19 at 15:03 +0900, 쩐! wrote:
>
>
> > I was integrated svn and bugzilla with scmbug.
> > If I commit with bug_no, description in svn, it can update bug's data
> > in bugzilla.
> > But, it overwrite bug's other data before i entered (like
> > bug_severity, bug_status, priority, etc) with null.
> > How can I set the scmbug to keep the bug's other information?
>
> Scmbug shouldn't be overwriting anything. It uses
> Bugzilla::Bug->add_comment() to add comments, so any bugs in addition of
> the comments may be bugs in the Bugzilla source code.
>
> Could you try upgrading to the latest Bugzilla 3.2.x ?
>
> > I use that.
> >
> > - Bugzilla v3.2.3
> > - Scmbug v0.26.18
>
> >
>
> _______________________________________________
> scmbug-users mailing list
> [email protected]
> http://lists.mkgnu.net/cgi-bin/mailman/listinfo/scmbug-users
>
>

Attachment: Bugzilla.pm.0.26.18.patched.gz
Description: GNU Zip compressed data

_______________________________________________
scmbug-users mailing list
[email protected]
http://lists.mkgnu.net/cgi-bin/mailman/listinfo/scmbug-users

Reply via email to