rojanu
unread,May 15, 2013, 1:03:48 PM5/15/13You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
Hi I am writing a class to import bugs from a bug tracker
I need to update the see also field of the bugs, I have
foreach my $ids (@$result){
my ($bug_id, $see_also) = @$ids;
my $bug = Bugzilla::Bug->check($bug_id);
if(!@{$bug->see_also}){
$self->debug("Linking Bugs: $bug_id <-> $see_also");
my %set_all_fields;
$set_all_fields{who} = $self->config('default_assignee');
$set_all_fields{see_also}->{add} = [$see_also];
$bug->set_all(\%set_all_fields);
$bug->update();
}
But this fields are not enough to update the bug as the DB constraints are not satisfied. What other fields do I need?
Thanks,
rojanu