The branch, master-1.2.x has been updated
via 7ab6eb383a29a73ad65ade7de504d45477c87fb3 (commit)
from 890c36eb616cf5f1d115efa8b5de61b8b737937a (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 7ab6eb383a29a73ad65ade7de504d45477c87fb3
Author: Victor Boctor <vboctor@...>
Date: Sun Jan 9 00:23:07 2011 -0800
Follow up fix for:
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.
-----------------------------------------------------------------------
Summary of changes:
core/custom_field_api.php | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
-----------------------------------------------------------------------
commit 7ab6eb383a29a73ad65ade7de504d45477c87fb3
Author: Victor Boctor <vboctor@...>
Date: Sun Jan 9 00:23:07 2011 -0800
Follow up fix for:
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.
diff --git a/core/custom_field_api.php b/core/custom_field_api.php
index d69a1e7..2c97592 100644
--- a/core/custom_field_api.php
+++ b/core/custom_field_api.php
@@ -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;
}
-----------------------------------------------------------------------
--
Mantis Bug Tracker
|