View Issue Details

IDProjectCategoryView StatusLast Update
0008509mantisbtbugtrackerpublic2008-05-21 02:34
Reporterseiji Assigned Togiallu  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
PlatformX86OSGentoo Linux 
Product Version1.1.0rc2 
Target Version1.1.0rc3Fixed in Version1.1.0rc3 
Summary0008509: Empty Note is added when updating issue
Description

When I updated issue with empty note and default time tracking '0:00', empty note was added.

Steps To Reproduce
  1. View a issue.
  2. click 'Update issue' button.
  3. No Change and click 'update Information' button.
  4. Empty Note is added.
Additional Information

See attached patch

Tagspatch
Attached Files
bug_update.php.patch (714 bytes)   
Index: bug_update.php
===================================================================
RCS file: /cvsroot/mantisbt/mantisbt/bug_update.php,v
retrieving revision 1.93
diff -u -r1.93 bug_update.php
--- bug_update.php	24 Oct 2007 22:30:44 -0000	1.93
+++ bug_update.php	25 Oct 2007 13:23:16 -0000
@@ -189,8 +189,10 @@
 		}
 	}
 
+	$c_time_tracking = db_prepare_time( $f_time_tracking );
+	
 	# Add a bugnote if there is one
-	if ( ( !is_blank( $f_bugnote_text ) || !is_blank( $f_time_tracking ) ) && ( false == $t_bug_note_set ) ) {
+	if ( ( !is_blank( $f_bugnote_text ) || $c_time_tracking > 0 ) && ( false == $t_bug_note_set ) ) {
 		bugnote_add( $f_bug_id, $f_bugnote_text, $f_time_tracking, $f_private );
 	}
 
bug_update.php.patch (714 bytes)   

Relationships

related to 0007953 closeddaryn Time Tracking assigment lost, when changing issue status without note text 
parent of 0009182 closeddaryn Port 0008509: Empty Note is added when updating issue 
has duplicate 0008513 closedgiallu Superfluous empty note entries 
has duplicate 0008548 closedgiallu Updating issue in advanced mode adds empty notes field 

Activities

giallu

giallu

2007-10-25 12:42

reporter   ~0015980

This looks like a side effect of 0007953

giallu

giallu

2007-10-26 05:12

reporter   ~0015988

For now I reverted in CVS the modification that triggered this bug.

I believe a full fix for this is going to come out from the linked bug report.

Feel free to add your comments there

Related Changesets

MantisBT: master-1.1.x 049be82e

2007-10-26 04:52

giallu


Details Diff
Revert last change as it causes bug 8509

git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/branches/BRANCH_1_1_0@4668 <a class="text" href="/?p=mantisbt.git;a=object;h=f5dc347c">f5dc347c</a>-c33d-0410-90a0-b07cc1902cb9
Affected Issues
0008509
mod - bug_update.php Diff File

MantisBT: master bda0f406

2008-04-21 13:28

daryn


Details Diff
Fix bug 0007953, 0007971, 0008362, 0008647, 0008509
Moved checks for adding a bugnote into the bugnote add function.
Added configuration option for allowing adding time tracking
without bugnote text. This defaults to ON. Moved email on adding
a bugnote into the bugnote add function with a parameter to specify
whether an email should be sent or not. Defaults to send email. Updated
calls to bugnote add to prevent sending the email in cases where an email is
already being sent.

git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/trunk@5187 <a class="text" href="/?p=mantisbt.git;a=object;h=f5dc347c">f5dc347c</a>-c33d-0410-90a0-b07cc1902cb9
Affected Issues
0007953, 0007971, 0008362, 0008509, 0008647
mod - bugnote_add.php Diff File
mod - config_defaults_inc.php Diff File
mod - core/bug_api.php Diff File
mod - api/soap/mc_issue_api.php Diff File
mod - bug_update.php Diff File
mod - bug_reminder.php Diff File
mod - core/bugnote_api.php Diff File