Skip to content

Commit

Permalink
Follow up fix for:
Browse files Browse the repository at this point in the history
    Issue #12619: Custom fields are reported as required after upgrade from 1.1.0 to 1.2.3.
    Issue #11684: Incorrect error "A necessary field "MyField" was empty. Please recheck your inputs." when submitting new issue.
  • Loading branch information
vboctor committed Jan 9, 2011
1 parent 890c36e commit 7ab6eb3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/custom_field_api.php
Expand Up @@ -1185,8 +1185,8 @@ function custom_field_validate( $p_field_id, $p_value ) {
case CUSTOM_FIELD_TYPE_LIST:
case CUSTOM_FIELD_TYPE_ENUM:
case CUSTOM_FIELD_TYPE_RADIO:
# List fields can hold be empty (when no checkboxes are ticked)
if ( $p_value === '' ) {
# List fields can be empty (when they are not shown on the form or shown with no default values and never clicked)
if ( is_blank( $p_value ) ) {
break;
}

Expand Down

0 comments on commit 7ab6eb3

Please sign in to comment.