Project

General

Profile

Actions

Defect #11283

closed

Adding time to an issue where a custom field regexp doesn't match adds the time spent twice

Added by Sepp _ almost 12 years ago. Updated over 7 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Time tracking
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Cant reproduce
Affected version:

Description

Adding time to an new issue where a custom field regexp (emailadress) doesn't match,
adds the time spent twice, when you correct the missing data in the "custom field" and resubmit the issue.

Actions #1

Updated by Jean-Philippe Lang almost 12 years ago

Adding time to an new issue

How do you do that? AFAIK, there's no way to enter a spent time when creating a new issue.

Actions #2

Updated by Jean-Philippe Lang almost 12 years ago

  • Resolution set to Cant reproduce

And I can't reproduce when adding time to an existing issue.

Actions #3

Updated by Sepp _ almost 12 years ago

I was wrong, this was just the second step after creating the issue.
I just tried it a second time after upgrading to 2.0.3.

To reproduce:
  • Set ^[a-zA-Z0-9][\w\.-]*(?:[a-zA-Z0-9][a-zA-Z0-9_-]+\.)+[A-Za-z]{2,5};?.*$ as a Custom Field-Rexexp for validating Emailadresses
  • Create a new issue
  • Update the issue with a wrong emailadress and add hours to it.
  • correct the emailadress and submit again: --> The hours are added twice.
Actions #4

Updated by Jean-Philippe Lang over 11 years ago

I still can't reproduce with 2.1 by following these steps, hours are saved only after the valid update.
I have also added a test in r10621 to make sure that spent time is not added when validation fails.

Actions #5

Updated by Go MAEDA over 7 years ago

  • Category set to Time tracking
  • Status changed from New to Closed

No feedback for years. Closing.

Actions

Also available in: Atom PDF