WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: Job Manager] Bug: Files cannot be uploaded if marked mandatory (2 posts)

  1. iDope
    Member
    Posted 4 years ago #

    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/

  2. Gary Pendergast
    Member
    Posted 4 years ago #

    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;
    }

Topic Closed

This topic has been closed to new replies.

About this Topic