https://www.redmine.org/https://www.redmine.org/favicon.ico?16793021292012-06-28T08:04:15ZRedmineRedmine - Defect #11283: Adding time to an issue where a custom field regexp doesn't match adds the time spent twicehttps://www.redmine.org/issues/11283?journal_id=393542012-06-28T08:04:15ZJean-Philippe Langjp_lang@yahoo.fr
<ul></ul><blockquote>
<p>Adding time to an new issue</p>
</blockquote>
<p>How do you do that? AFAIK, there's no way to enter a spent time when creating a new issue.</p> Redmine - Defect #11283: Adding time to an issue where a custom field regexp doesn't match adds the time spent twicehttps://www.redmine.org/issues/11283?journal_id=393552012-06-28T08:09:41ZJean-Philippe Langjp_lang@yahoo.fr
<ul><li><strong>Resolution</strong> set to <i>Cant reproduce</i></li></ul><p>And I can't reproduce when adding time to an existing issue.</p> Redmine - Defect #11283: Adding time to an issue where a custom field regexp doesn't match adds the time spent twicehttps://www.redmine.org/issues/11283?journal_id=394322012-07-03T12:42:49ZSepp _
<ul></ul><p>I was wrong, this was just the second step after creating the issue.<br />I just tried it a second time after upgrading to 2.0.3.</p>
To reproduce:
<ul>
<li>Set <code>^[a-zA-Z0-9][\w\.-]*</code>(?:[a-zA-Z0-9][a-zA-Z0-9_-]+\.)+[A-Za-z]{2,5};?.*$ as a Custom Field-Rexexp for validating Emailadresses</li>
<li>Create a new issue</li>
<li>Update the issue with a wrong emailadress and add hours to it.</li>
<li>correct the emailadress and submit again: --> The hours are added twice.</li>
</ul> Redmine - Defect #11283: Adding time to an issue where a custom field regexp doesn't match adds the time spent twicehttps://www.redmine.org/issues/11283?journal_id=419862012-10-12T21:31:45ZJean-Philippe Langjp_lang@yahoo.fr
<ul></ul><p>I still can't reproduce with 2.1 by following these steps, hours are saved only after the valid update.<br />I have also added a test in <a class="changeset" title="Test that spent time should not be added when issue update fails (#11283)." href="https://www.redmine.org/projects/redmine/repository/svn/revisions/10621">r10621</a> to make sure that spent time is not added when validation fails.</p> Redmine - Defect #11283: Adding time to an issue where a custom field regexp doesn't match adds the time spent twicehttps://www.redmine.org/issues/11283?journal_id=728142016-08-21T06:18:57ZGo MAEDA
<ul><li><strong>Category</strong> set to <i>Time tracking</i></li><li><strong>Status</strong> changed from <i>New</i> to <i>Closed</i></li></ul><p>No feedback for years. Closing.</p>