Project

General

Profile

« Previous | Next » 

Revision 2612

Added by sgarg about 19 years ago

Fix for bug 2215. Error message is displayed if project name is not selected in the nceas skin.

View differences:

register-dataset.cgi
573 573
    my $chkUser = shift;
574 574
    my @invalidParams;
575 575

  
576
    push(@invalidParams, "Name of the Project is not selected in the form.")
577
        if (scalar(@FORM::wg) == 0 && $showWgList eq 'true');
576 578
    push(@invalidParams, "First name of person entering the form is missing.")
577 579
        unless hasContent($FORM::providerGivenName);
578 580
    push(@invalidParams, "Last name of person entering the form is missing.")
579 581
        unless hasContent($FORM::providerSurName);
580
    push(@invalidParams, "Data set title is missing.")
582
    push(@invalidParams, "Dataset title is missing.")
581 583
        unless hasContent($FORM::title);
582 584
    push(@invalidParams, "Organization name is missing.")
583 585
        unless (hasContent($FORM::site) || $FORM::site =~ /elect/ ||
......
586 588
        unless hasContent($FORM::origNamefirst0);
587 589
    push(@invalidParams, "Last name of principal data set owner is missing.")
588 590
        unless hasContent($FORM::origNamelast0);
589
    push(@invalidParams, "Data set abstract is missing.")
591
    push(@invalidParams, "Dataset abstract is missing.")
590 592
        unless hasContent($FORM::abstract);
591 593
    if($FORM::hasTemporal eq 'true'){
592 594
	push(@invalidParams, "Year of start date is missing.")

Also available in: Unified diff