logo       
Google Custom Search
    AddThis Social Bookmark Button

Recently Viewed: audio.musicbrai...    enbd.general/20...    ietf.idr/2002-0...    java.ant-contri...    gnu.make.genera...    qplus.devel/200...    video.freevo.cv...    os.netbsd.ports...    yellowdog.gener...    xfree86.cvs/200...    search.nutch.us...    freedesktop.xse...    programming.swi...    capabilities.ge...    telephony.pbx.a...    mail.sylpheed.c...    db.firebase.por...    boot-loaders.u-...    recreation.radi...    netbsd.bugs/200...    web.zope.plone....    user-groups.lin...   

mantisbt bug_update.php,1.84,1.85: msg#00089

Subject: mantisbt bug_update.php,1.84,1.85
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 ...
<Prev in Thread] Current Thread [Next in Thread>