https://www.redmine.org/https://www.redmine.org/favicon.ico?16793021292012-09-27T20:12:36ZRedmineRedmine - Defect #11975: Undefined status transitions allowed in workflow (author of issue changes when selecting a new status)https://www.redmine.org/issues/11975?journal_id=412322012-09-27T20:12:36ZBrian Lindahl
<ul></ul><p>Note that I wasn't able to reproduce <a class="issue tracker-1 status-5 priority-5 priority-high2 closed" title="Defect: Private checkbox ignored on issue creation with "Set own issues public or private" permission (Closed)" href="https://www.redmine.org/issues/8472">#8472</a>. It's likely that the root cause of <a class="issue tracker-1 status-5 priority-5 priority-high2 closed" title="Defect: Private checkbox ignored on issue creation with "Set own issues public or private" permission (Closed)" href="https://www.redmine.org/issues/8472">#8472</a> was resolved in later Redmine versions (post-1.2.0), and that the fix performed in Revision 5991 is no longer necessary.</p>
<p>However, if the fix is still necessary, one possible solution to fix both problems could be (only speculation, since I can't reproduce <a class="issue tracker-1 status-5 priority-5 priority-high2 closed" title="Defect: Private checkbox ignored on issue creation with "Set own issues public or private" permission (Closed)" href="https://www.redmine.org/issues/8472">#8472</a>):</p>
<pre>
diff -rupN redmine-2.1.0/app/controllers/issues_controller.rb redmine-2.1.0-modified/app/controllers/issues_controller.rb
--- redmine-2.1.0/app/controllers/issues_controller.rb 2012-09-16 06:54:12.000000000 -0600
+++ redmine-2.1.0-modified/app/controllers/issues_controller.rb 2012-09-27 14:10:33.108460711 -0600
@@ -398,7 +398,7 @@ private
end
@issue.project = @project
- @issue.author = User.current
+ @issue.author ||= User.current
# Tracker must be set before custom field values
@issue.tracker ||= @project.trackers.find((params[:issue] && params[:issue][:tracker_id]) || params[:tracker_id] || :first)
if @issue.tracker.nil?
</pre> Redmine - Defect #11975: Undefined status transitions allowed in workflow (author of issue changes when selecting a new status)https://www.redmine.org/issues/11975?journal_id=412342012-09-27T20:23:29ZBrian Lindahl
<ul></ul><p>Also, in my example, the only people who can perform Discarded -> Closed are the authors of the issue. Thus, the 'Development Engineer' should not be able to perform this transition. Only when the author is inappropriately changed, is this transition allowed.</p> Redmine - Defect #11975: Undefined status transitions allowed in workflow (author of issue changes when selecting a new status)https://www.redmine.org/issues/11975?journal_id=412352012-09-27T22:12:59ZJean-Philippe Langjp_lang@yahoo.fr
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Resolved</i></li><li><strong>Target version</strong> set to <i>2.1.1</i></li><li><strong>Resolution</strong> set to <i>Fixed</i></li></ul><p>Fixed in <a class="changeset" title="Fixed that issue author is assigned with current user when the edit form is updated (#11975)." href="https://www.redmine.org/projects/redmine/repository/svn/revisions/10494">r10494</a> with a test, thanks for pointing this out.</p> Redmine - Defect #11975: Undefined status transitions allowed in workflow (author of issue changes when selecting a new status)https://www.redmine.org/issues/11975?journal_id=413092012-09-29T16:31:23ZJean-Philippe Langjp_lang@yahoo.fr
<ul><li><strong>Status</strong> changed from <i>Resolved</i> to <i>Closed</i></li></ul><p>Merged into 2.1-stable.</p>