From: <gi...@ma...> - 2009-05-11 14:20:41
|
The branch, master-1.1.x has been updated via 86ea1ec7de0bc142dbaa008222c597f2b5b5808a (commit) from 4db17335723cd8f5c291443b96d327aaac22e6e8 (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 86ea1ec7de0bc142dbaa008222c597f2b5b5808a Author: John Reese <jr...@le...> Date: Mon May 11 10:17:31 2009 -0400 Fix #10184: Properly validate null values for custom date fields. ----------------------------------------------------------------------- Summary of changes: core/custom_field_api.php | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) ----------------------------------------------------------------------- commit 86ea1ec7de0bc142dbaa008222c597f2b5b5808a Author: John Reese <jr...@le...> Date: Mon May 11 10:17:31 2009 -0400 Fix #10184: Properly validate null values for custom date fields. diff --git a/core/custom_field_api.php b/core/custom_field_api.php index b6cfabb..5b9f39e 100644 --- a/core/custom_field_api.php +++ b/core/custom_field_api.php @@ -966,7 +966,7 @@ case CUSTOM_FIELD_TYPE_DATE: // gpc_get_cf for date returns the value from strftime // either false (php >= 5.1) or -1 (php < 5.1) for failure - $t_valid &= ( $p_value !== false ) && ( $p_value > 0 ); + $t_valid &= ( $p_value == null ) || ( ( $p_value !== false ) && ( $p_value > 0 ) ); break; case CUSTOM_FIELD_TYPE_ENUM: case CUSTOM_FIELD_TYPE_EMAIL: ----------------------------------------------------------------------- -- Mantis Bug Tracker |