Support » Plugins and Hacks » [Plugin: Job Manager] Bug: Files cannot be uploaded if marked mandatory

  • iDope

    (@idope)


    AFAIK, The problem lies in line number 367 of frontend-application.php:

    if( 'file' == $field['type'] && ! array_key_exists( "jobman-field-$id", $_FILES ) )

    The “!array_key_exists( “jobman-field-$id”, $_FILES ) )” part should be checked inside of the condition block.

    http://wordpress.org/extend/plugins/job-manager/

Viewing 1 replies (of 1 total)
  • Moderator Gary Pendergast

    (@pento)

    Thanks for the bug report, you are absolutely correct. This if should be:

    if( 'file' == $field['type'] ) {
    	if ( ! array_key_exists( "jobman-field-$id", $_FILES ) )
    		return $id;
    }
Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Job Manager] Bug: Files cannot be uploaded if marked mandatory’ is closed to new replies.