Update of /cvsroot/mantisbt/mantisbt
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28891
Modified Files:
bug_update.php
Log Message:
revert the previous gpc_api and bug_update.php and apply a better fix
fix for 0005587: Custom field date type reset to blank
fix for 0005651: The values in a mulitselect custom field disappear
when updating the status of the issue
Index: bug_update.php
===================================================================
RCS file: /cvsroot/mantisbt/mantisbt/bug_update.php,v
retrieving revision 1.84
retrieving revision 1.85
diff -u -d -r1.84 -r1.85
--- bug_update.php 26 May 2005 00:03:03 -0000 1.84
+++ bug_update.php 26 May 2005 23:46:19 -0000 1.85
@@ -93,18 +93,15 @@
$t_custom_field_value = gpc_get_custom_field(
"custom_field_$t_id", $t_def['type'], null );
# Only update the field if it would have been display for
editing
- if( !( $t_def['display_' . $t_custom_status_label] ||
- $t_def['require_' .
$t_custom_status_label] ||
+ if( !( ( ! $f_update_mode && $t_def['require_' .
$t_custom_status_label] ) ||
( $f_update_mode &&
$t_def['display_update'] ) ||
( $f_update_mode &&
$t_def['require_update'] ) ) ) {
continue;
}
- # Only update the field if it is posted, or was required
+ # Only update the field if it is posted
# ( will fail in custom_field_set_value(), if it was required )
- if ( ( $t_custom_field_value === null ) &&
- ! ( $t_def['require_' . $t_custom_status_label] ||
- ( $f_update_mode && $t_def['require_update'] )
) ) {
+ if ( $t_custom_field_value === null ) {
continue;
}
-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
|
Try Searching:
servers, voip, java, networking, microsoft ...
|
|
|
|