Project

General

Profile

« Previous | Next » 

Revision 9142

do not require site parameter if registry.show.siteList=false.
https://projects.ecoinformatics.org/ecoinfo/issues/6687

View differences:

src/perl/register-dataset.cgi
856 856
	  unless hasContent($FORM::providerSurName);
857 857
	push( @invalidParams, "Dataset title is missing." )
858 858
	  unless hasContent($FORM::title);
859
	push( @invalidParams, ucfirst( $config->{'site'} ) . " name is missing." )
860
	  unless ( ( hasContent($FORM::site) && !( $FORM::site =~ /^Select/ ) )
861
		|| $skinName eq "nceas" );
859
	if ( $show->{'siteList'} eq 'true' ) { 
860
		push( @invalidParams, ucfirst( $config->{'site'} ) . " name is missing." )
861
		  unless ( ( hasContent($FORM::site) && !( $FORM::site =~ /^Select/ ) )
862
			|| $skinName eq "nceas" );
863
	}
862 864
	push( @invalidParams, "First name of principal data set owner is missing." )
863 865
	  unless hasContent($FORM::origNamefirst0);
864 866
	push( @invalidParams, "Last name of principal data set owner is missing." )

Also available in: Unified diff