Project

General

Profile

Actions

Defect #36794

open

Issue copying ignores workflow rules

Added by Dmitry Makurin over 2 years ago. Updated over 2 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Affected version:

Description

Issue.copy ignores rules defined by workflow for status New (new issue form).

A simple example.

Let's say we have an issue:

Project: eCookBook
Tracker: Bug
Status: Closed
Category: Print

Create a workflow rule where for tracker Bug and role Manager field Category is read-only on status New.

User with given role presses the Copy button. New issue form is shown, as expected by workflow there is no Category field because it is not editable by user.

Press create and see that field Category was succesfully copied even though user can't edit it.

Also steps to reproduce on a test database with loaded fixtures:

1. Go to Administration - Workflow - Fields permissions
2. Select role Manager, tracker Bug press edit
3. Make Float field read-only for status New
4. Log as jsmith and copy issue#1
5. There is no Float field on form
6. Save the issue and see that Float field was copied


Files

36794.patch (4.49 KB) 36794.patch Dmitry Makurin , 2022-03-17 16:46
Actions

Also available in: Atom PDF