VasiaB / bugzilla-cn

Automatically exported from code.google.com/p/bugzilla-cn
0 stars 0 forks source link

Form field dup_id was not defined #12

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Update bugzilla to 3.3
2. Copy the cn to template folder
3. Try post a bug 

What is the expected output? What do you see instead?
Should be success but there is "Form field dup_id was not defined" error
So I input the duplicate id, and it pass the validation. It seems the 
duplicate id field must be filled in 3.3 

What version of the product are you using? On what operating system?
Bugzilla 3.3 + cn 3.1.2 

Please provide any additional information below.
The 3.1.2 almost works for 3.3 but only the dup_id encounter the error if 
it is blank.  Ummmm interesting...

Original issue reported on code.google.com by pip.c...@gmail.com on 7 Jul 2008 at 2:43

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
I fix it.download form svn.

Original comment by lxb...@gmail.com on 23 Jul 2008 at 2:31

GoogleCodeExporter commented 8 years ago
About this problem "Form field dup_id was not defined"
I modify the file "bugzilla-3.1.4\process_bug.cgi"
Add "#" after line 509~511 code, then this codes cannot enable ,
for example:
foreach my $b (@bug_objects) {
    if (should_set('bug_status')) {
        $b->set_status(
            scalar $cgi->param('bug_status'),
            {resolution =>  scalar $cgi->param('resolution'),
                dupe_of => scalar $cgi->param('dup_id')}
            );
    }
    elsif (should_set('resolution')) {
       $b->set_resolution(scalar $cgi->param('resolution'), 
                          {dupe_of => scalar $cgi->param('dup_id')});
    }
    #elsif (should_set('dup_id')) {
    #    $b->set_dup_id(scalar $cgi->param('dup_id'));
    #}
}
so "Form field dup_id was not defined " will not come out again .

I didnot find the Bugzilla_version_3.3 ,the lastest version is bugzilla_3.1.4
Is the Bugzilla_version_3.3 exist?

Original comment by hove...@gmail.com on 29 Jul 2008 at 8:45

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
I change it as belows, and works for me 
elsif (should_set('dup_id')) {
        if ($cgi->param('dup_id') != "") {
                $b->set_dup_id(scalar $cgi->param('dup_id'));
        }
    }

Original comment by pip.c...@gmail.com on 9 Sep 2008 at 9:25