Scmbug integration fails with multiple Bug IDs
Brought to you by:
sits
I found a strange bug that passed me by when I was helping with the Scmbug integration.
The create Topic will fail if more than one Bug ID is supplied. This is caused by the list of bug IDs getting spaces inseted between the comas. Fix for this is simple, in the file ScmBug.pm function getDiff replace:
my $affected_files_list = $self->{scmbug}->get_affected_files( $bugids );
with:
my $raw_bugids = $bugids;
$raw_bugids =~ s/ //g;
my $affected_files_list = $self->{scmbug}->get_affected_files( $raw_bugids );
Thanks
Rob
Logged In: YES
user_id=208928
Originator: NO
Thanks - I've put the following in:
# Remove spaces from the comma-separated list of bug ids so that
# "123, 456" is transformed to "123,456" which is the form
# Scmbug::ActivityUtilities expects.
$bugids =~ s/ //g;
my $affected_files_list = $self->{scmbug}->get_affected_files($bugids);