Edgewall Software
Modify

Opened 17 years ago

Closed 17 years ago

Last modified 17 years ago

#5803 closed defect (worksforme)

In Change History for ticket, no difference between a zero value and an empty value, always shows as "deleted"

Reported by: francois@… Owned by: Jonas Borgström
Priority: normal Milestone:
Component: ticket system Version: 0.10.3.1
Severity: normal Keywords:
Cc: francois@… Branch:
Release Notes:
API Changes:
Internal Changes:

Description

When I set a field to a value of '0' (a string with a zero), then the Change History section of the shows the value as "deleted" instead of showing "changed from 1.5 to 0." for example. This is a misleading for the user, especially when using custom fields for numeric values such as burn rate, for example for the burnrate plugins.

I am working on a patch on my installation, and I believe that this (very simple) patch could be accepted in the product. Your opinion ?

Attachments (3)

field_with_zero_not_deleted.patch (2.4 KB ) - added by francois@… 17 years ago.
Patch that fixes this issue (on 0.10.3.1)
field_with_zero_not_deleted.2.patch (2.7 KB ) - added by francois@… 17 years ago.
Patch that fixes this issue (on 0.10.3.1)
patch_zero_in_reports.patch (707 bytes ) - added by francois@… 17 years ago.
additional patch for francois@nexb.com

Download all attachments as: .zip

Change History (14)

by francois@…, 17 years ago

Patch that fixes this issue (on 0.10.3.1)

by francois@…, 17 years ago

Patch that fixes this issue (on 0.10.3.1)

comment:1 by anonymous, 17 years ago

+1

in reply to:  1 ; comment:2 by anonymous, 17 years ago

Replying to anonymous:

+1

I had the same problem and tried your solution and it works. Now I have an other problem when I do a report, the value '0' is not displayed, there's a blank. Do you have any solution?

comment:3 by Christian Boos, 17 years ago

Keywords: verify added
Milestone: 0.11.1

We should verify whether the problem is still there in 0.11dev and if yes, adapt the patch to trunk.

comment:4 by francois@…, 17 years ago

I have to port some other work I have done to 0.11, so I will get to look at that in the next few week. I'll propose a patch for 0.11 if needed. The problem was in clearsilver, but it is possible that Genshi has a similar issue.

in reply to:  2 ; comment:5 by francois@…, 17 years ago

Replying to anonymous:

Replying to anonymous:

+1

I had the same problem and tried your solution and it works. Now I have an other problem when I do a report, the value '0' is not displayed, there's a blank. Do you have any solution?

Yes, I saw this problem; I'm adding a patch for it (for 0.10.3.1 but it shouldn't difficult to adapt it other 0.10.x releases)

by francois@…, 17 years ago

Attachment: patch_zero_in_reports.patch added

additional patch for francois@nexb.com

in reply to:  5 comment:6 by anonymous, 17 years ago

Replying to francois@nexb.com:

Replying to anonymous:

Replying to anonymous:

+1

I had the same problem and tried your solution and it works. Now I have an other problem when I do a report, the value '0' is not displayed, there's a blank. Do you have any solution?

Yes, I saw this problem; I'm adding a patch for it (for 0.10.3.1 but it shouldn't difficult to adapt it other 0.10.x releases)

Thank you for your help, your patch works very well.

comment:7 by osimons, 17 years ago

Keywords: verify removed
Milestone: 0.11.1
Resolution: wontfix
Status: newclosed

This behavior does no longer exist in trunk (0.11dev): Changing the keyword field + a custom field from some input to '0' gave this output:

  • keywords 0 added; a_keyword removed
  • test_field changed from a_word to 0

This will not be backported to 0.10, so I suppose it is a 'wontfix' for this ticket - although it obviously has been 'fixed' elsewhere.

comment:8 by Christian Boos, 17 years ago

Don't you think worksforme would be more appropriate here?

in reply to:  8 comment:9 by osimons, 17 years ago

Resolution: wontfix
Status: closedreopened

Replying to cboos:

Don't you think worksforme would be more appropriate here?

Well, you tell me :-) I was (again) in doubt on what was correct… I'll go read TracTicketTriage again for the n-th time.

comment:10 by osimons, 17 years ago

Resolution: worksforme
Status: reopenedclosed

And, worksforme.

comment:11 by Christian Boos, 17 years ago

It's not an exact science ;-)

My feeling is that we should use:

  • wontfix when the issue will not be addressed, for whatever reason
  • worksforme when the issue has already been fixed at the time of the creation of the ticket, or has been fixed later on but as a side-effect (or when we don't bother looking up the exact changeset which fixed that issue on purpose ;-) )

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Jonas Borgström.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Jonas Borgström to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.