summaryrefslogtreecommitdiffstats
path: root/app/models/issue.rb
Commit message (Collapse)AuthorAgeFilesLines
* Merged r15238.Jean-Philippe Lang2016-03-131-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/branches/3.2-stable@15239 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Merged r15223 and r15225 (#22127).Jean-Philippe Lang2016-03-131-0/+11
| | | | git-svn-id: http://svn.redmine.org/redmine/branches/3.2-stable@15230 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Merged r15196 (#22072).Jean-Philippe Lang2016-03-121-0/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/branches/3.2-stable@15207 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Merged r14970 to r14972 (#21477).Jean-Philippe Lang2015-12-191-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/branches/3.2-stable@14980 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Calculate done_ratio based on children instead of leaves (#20995).Jean-Philippe Lang2015-11-141-5/+5
| | | | | | Patch by Jens Krämer. git-svn-id: http://svn.redmine.org/redmine/trunk@14875 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Default target version for new issues (#1828).Jean-Philippe Lang2015-11-011-4/+13
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@14786 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Don't require category or target version when they are not available (#20583).Jean-Philippe Lang2015-10-241-0/+2
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@14733 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Adds a scope to get issues assigned to a user.Jean-Philippe Lang2015-10-211-0/+7
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@14720 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Do not clear category on project change if category with same exists (#16941).Jean-Philippe Lang2015-10-201-0/+5
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@14715 e93f8b46-1217-0410-a6f0-8f06a7374b81
* List custom fields with multiple values set as required by workflow can be ↵Jean-Philippe Lang2015-10-141-1/+1
| | | | | | | | blank (#20677). Patch by Pavel Rosický. git-svn-id: http://svn.redmine.org/redmine/trunk@14670 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Don't propose projects without trackers when editing an issue (#20463).Jean-Philippe Lang2015-09-201-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@14613 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Internal error when moving an issue to a project without trackers (#20463).Jean-Philippe Lang2015-09-201-0/+5
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@14612 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Import issues from CSV file (#950).Jean-Philippe Lang2015-08-141-1/+9
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@14493 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Makes new issue initial status settable in workflow (#5816).Jean-Philippe Lang2015-07-261-11/+14
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@14458 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixes methods comments.Jean-Philippe Lang2015-07-051-1/+2
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@14409 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Limit queries to given issues only.Jean-Philippe Lang2015-07-051-3/+5
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@14408 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Preload total spent time on the issue list with 1 query (#11253).Jean-Philippe Lang2015-07-051-4/+13
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@14407 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Replace tabs with spaces and remove trailing tabs in several files (#20140).Jean-Philippe Lang2015-06-211-1/+1
| | | | | | Patch by Mischa The Evil. git-svn-id: http://svn.redmine.org/redmine/trunk@14365 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Code cleanup.Jean-Philippe Lang2015-05-251-8/+7
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@14274 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Don't store total estimated hours on parent issues (#16092).Jean-Philippe Lang2015-05-251-7/+9
| | | | | | Parent can now have its own estimate that is summed up with children estimates. git-svn-id: http://svn.redmine.org/redmine/trunk@14272 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Adds a setting to control done ratio on parent tasks (#5490).Jean-Philippe Lang2015-05-251-13/+22
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@14270 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Adds settings to control start/due dates and priority on parent tasks (#5490).Jean-Philippe Lang2015-05-251-18/+39
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@14269 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed that issue validation fails if % done field is deactivated (#19731).Jean-Philippe Lang2015-05-091-0/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@14241 e93f8b46-1217-0410-a6f0-8f06a7374b81
* When changing tracker, clear the attributes that are disabled for the new ↵Jean-Philippe Lang2015-04-141-1/+14
| | | | | | tracker (#17527). git-svn-id: http://svn.redmine.org/redmine/trunk@14180 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed that custom fields with hidden/read-only combination may be displayed ↵Jean-Philippe Lang2015-03-201-3/+17
| | | | | | on issue form (#19297). git-svn-id: http://svn.redmine.org/redmine/trunk@14137 e93f8b46-1217-0410-a6f0-8f06a7374b81
* remove trailing white-space from app/models/issue.rbToshi MARUYAMA2015-03-161-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@14120 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed that creating an issue without tracker_id attribute ignores custom ↵Jean-Philippe Lang2015-03-141-0/+5
| | | | | | field values (#19368). git-svn-id: http://svn.redmine.org/redmine/trunk@14083 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Missing notification if previous assignee was a group (#19197).Jean-Philippe Lang2015-03-071-2/+2
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@14049 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Don't validate custom fields that are not editable (#19193).Jean-Philippe Lang2015-03-011-0/+11
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@14045 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Implements /issues/new form for creating issues outside a project (#1003).Jean-Philippe Lang2015-02-141-10/+3
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13999 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Added Issue#attributes_editable?Jean-Philippe Lang2015-02-131-1/+6
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13996 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Adds a :copy_issues permission (#18855).Jean-Philippe Lang2015-02-081-0/+3
| | | | | | When copy is allowed, target projects are those on which the user has the :add_issues permission. git-svn-id: http://svn.redmine.org/redmine/trunk@13985 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Removed :move_issues permission (#18855).Jean-Philippe Lang2015-02-081-10/+12
| | | | | | This permission was wrongly used to allow bulk issue copy. To prevent user from moving an issue to another project, the project field should now be set to read-only in the workflow permissions. A migration does this automatically for roles that have the edit_issues permission without having the move_issues permission. git-svn-id: http://svn.redmine.org/redmine/trunk@13981 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Set :inverse_of option on journals association.Jean-Philippe Lang2015-01-211-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13923 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Upgrade to Rails 4.2.0 (#14534).Jean-Philippe Lang2015-01-171-2/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13892 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Copyright update.Jean-Philippe Lang2015-01-111-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13872 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Option to search open issues only (#10734).Jean-Philippe Lang2015-01-101-1/+2
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13858 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Search custom fields and journals with different queries to take advantage ↵Jean-Philippe Lang2015-01-081-7/+2
| | | | | | of indexes on text columns if present. git-svn-id: http://svn.redmine.org/redmine/trunk@13855 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Replaces awesome_nested_set gem with a simple and more robust implementation ↵Jean-Philippe Lang2015-01-071-48/+15
| | | | | | | | of nested sets. The concurrency tests added in this commit trigger dead locks and/or nested set inconsistency with awesome_nested_set. git-svn-id: http://svn.redmine.org/redmine/trunk@13841 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Don't consider roles without issue add/edit permissions for determining ↵Jean-Philippe Lang2014-12-131-0/+1
| | | | | | fields permissions (#15988). git-svn-id: http://svn.redmine.org/redmine/trunk@13747 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Droped legacy behaviour that allows a user to edit a few attributes of an ↵Jean-Philippe Lang2014-12-131-8/+0
| | | | | | | | issue without the edit_issues permission if a status transition is allowed (#15988). Now that we can control permission on each field, this behaviour is no longer needed. The edit_issues permission is now required, which is consistent with the current requirements for bulk edition. git-svn-id: http://svn.redmine.org/redmine/trunk@13746 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Rewrites search engine to properly paginate results (#18631).Jean-Philippe Lang2014-12-121-2/+1
| | | | | | Instead of counting and retrieving results based on their timestamps, we now load all result ids then load the appropriate results by their ids. This also brings a 2x performance improvement as we search tokens in one of the 2 queries only. git-svn-id: http://svn.redmine.org/redmine/trunk@13739 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Skip some validations if attribute did not change.Jean-Philippe Lang2014-12-061-1/+4
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13723 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Typo.Jean-Philippe Lang2014-12-051-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13712 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Removed unused and deprecated Issue#move_to_project method.Jean-Philippe Lang2014-12-051-27/+0
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13711 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Moved journal details generation to Journal model.Jean-Philippe Lang2014-12-051-78/+20
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13703 e93f8b46-1217-0410-a6f0-8f06a7374b81
* replace tab to space at app/models/issue.rbToshi MARUYAMA2014-11-221-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13639 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Clear @spent_hours on reload (#18410).Jean-Philippe Lang2014-11-221-0/+1
| | | | | | Patch by Ondřej Ezr. git-svn-id: http://svn.redmine.org/redmine/trunk@13625 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Prevents a status load in #status_was when status is not changed (#18290).Jean-Philippe Lang2014-11-081-2/+6
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13577 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Prevents author load (#18290).Jean-Philippe Lang2014-11-081-1/+1
| | | | | | Patch by Ondřej Ezr. git-svn-id: http://svn.redmine.org/redmine/trunk@13576 e93f8b46-1217-0410-a6f0-8f06a7374b81