Commit d4479cf3 authored by tara%tequilarista.org's avatar tara%tequilarista.org

fix for bug #24806

parent 55b5a6b7
...@@ -386,6 +386,10 @@ if ($action eq 'new') { ...@@ -386,6 +386,10 @@ if ($action eq 'new') {
} }
my $initialowner = trim($::FORM{initialowner} || ''); my $initialowner = trim($::FORM{initialowner} || '');
#
# Now validating to make sure it's too an existing account
#
DBNameToIdAndCheck($initialowner);
if ($initialowner eq '') { if ($initialowner eq '') {
print "You must enter an initial owner for the component '$component'. Please press\n"; print "You must enter an initial owner for the component '$component'. Please press\n";
...@@ -394,9 +398,12 @@ if ($action eq 'new') { ...@@ -394,9 +398,12 @@ if ($action eq 'new') {
exit; exit;
} }
#+++ #+++
#DBNameToIdAndCheck($initialowner, 0);
my $initialqacontact = trim($::FORM{initialqacontact} || ''); my $initialqacontact = trim($::FORM{initialqacontact} || '');
#
# Now validating to make sure it's too an existing account
#
DBNameToIdAndCheck($initialqacontact);
if (Param('useqacontact')) { if (Param('useqacontact')) {
if ($initialqacontact eq '') { if ($initialqacontact eq '') {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment