Recent Topics

BUG 6.9.4 Autoform validate param value

Started by on Nov 28, 2017 – Contents updated: Dec 06, 2017

Nov 28, 2017 15:05    

in inc/plugins/_plugin.funcs.php for function autoform_validate_param_value( $param_name, $value, $meta ) and $params 'allow_empty' => false

for 'type' => 'integer' a blank value is converted to 0 (Zero) and therefore never register 'blank' values. Is this correct?

ALSO:

Please can the param also support 'type' => 'text' ie:

	switch( $meta['type'] )
		{
			case 'text':
				if( $value == '' )
				{
					param_error( $param_name, sprintf( T_('The value for «%s» cannot be blank.'), $meta['label'] ), T_('The value cannot be blank.') );
					return false;
				}
				break;

This post has 1 feedback awaiting moderation...


Form is loading...

free blog software – This forum is powered by b2evolution CMS, a complete engine for your website.