summaryrefslogtreecommitdiffstats
path: root/app/models/issue.rb
Commit message (Collapse)AuthorAgeFilesLines
* Merged r21142 to 4.1-stable (#35634).Marius Balteanu2021-08-061-0/+5
| | | | git-svn-id: http://svn.redmine.org/redmine/branches/4.1-stable@21146 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Merged r20872 from trunk to 4.1-stable (#34921).Go MAEDA2021-03-291-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/branches/4.1-stable@20874 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Merged r20760 from trunk to 4.1-stable (#33206).Go MAEDA2021-03-041-2/+2
| | | | git-svn-id: http://svn.redmine.org/redmine/branches/4.1-stable@20761 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Merged r19975 from trunk to 4.1-stable (#33689).Go MAEDA2020-08-151-1/+0
| | | | git-svn-id: http://svn.redmine.org/redmine/branches/4.1-stable@19978 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Merged r19818 from trunk to 4.1-stable (#33576).Go MAEDA2020-06-141-3/+3
| | | | git-svn-id: http://svn.redmine.org/redmine/branches/4.1-stable@19819 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Merged r19777 from trunk to 4.1-stable (#33417).Go MAEDA2020-05-151-2/+5
| | | | git-svn-id: http://svn.redmine.org/redmine/branches/4.1-stable@19779 e93f8b46-1217-0410-a6f0-8f06a7374b81
* cleanup: rubocop: fix Layout/AlignArguments in app/models/issue.rbToshi MARUYAMA2019-11-081-20/+21
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@18937 e93f8b46-1217-0410-a6f0-8f06a7374b81
* code cleanup: rubocop: fix Lint/IneffectiveAccessModifier in app/models/issue.rbToshi MARUYAMA2019-10-191-15/+18
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@18780 e93f8b46-1217-0410-a6f0-8f06a7374b81
* code cleanup: rubocop: fix Layout/EmptyLines in app/models/issue.rbToshi MARUYAMA2019-10-191-2/+0
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@18735 e93f8b46-1217-0410-a6f0-8f06a7374b81
* code cleanup: rubocop: fix Layout/ElseAlignment in Issue class ↵Toshi MARUYAMA2019-09-301-5/+6
| | | | | | total_spent_hours method git-svn-id: http://svn.redmine.org/redmine/trunk@18567 e93f8b46-1217-0410-a6f0-8f06a7374b81
* code cleanup: rubocop: fix Layout/ElseAlignment in Issue class visible? methodToshi MARUYAMA2019-09-301-12/+13
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@18566 e93f8b46-1217-0410-a6f0-8f06a7374b81
* code cleanup: rubocop: fix Layout/ElseAlignment in Issue class ↵Toshi MARUYAMA2019-09-301-14/+15
| | | | | | visible_condition method git-svn-id: http://svn.redmine.org/redmine/trunk@18565 e93f8b46-1217-0410-a6f0-8f06a7374b81
* code cleanup: rubocop: fix Layout/MultilineBlockLayout in app/models/issue.rbToshi MARUYAMA2019-09-301-2/+3
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@18556 e93f8b46-1217-0410-a6f0-8f06a7374b81
* code cleanup: rubocop: fix Style/ZeroLengthPredicate in app/models/issue.rbToshi MARUYAMA2019-09-241-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@18523 e93f8b46-1217-0410-a6f0-8f06a7374b81
* code cleanup: rubocop: fix Layout/BlockEndNewline in app/models/issue.rbToshi MARUYAMA2019-09-241-1/+2
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@18517 e93f8b46-1217-0410-a6f0-8f06a7374b81
* remove "attr_reader :current_journal" from Issue classToshi MARUYAMA2019-09-201-1/+0
| | | | | | Issue#current_journal is already defined in Issue class. git-svn-id: http://svn.redmine.org/redmine/trunk@18488 e93f8b46-1217-0410-a6f0-8f06a7374b81
* use "attr_writer" instead of "attr_accessor" for Issue#deleted_attachment_idsToshi MARUYAMA2019-09-201-1/+1
| | | | | | Issue#deleted_attachment_ids is already defined in Issue class. git-svn-id: http://svn.redmine.org/redmine/trunk@18487 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Limit total_estimated_hours to visible issues (#31778).Go MAEDA2019-08-071-1/+1
| | | | | | | Patch by Gregor Schmidt. git-svn-id: http://svn.redmine.org/redmine/trunk@18356 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Update copyright year.Go MAEDA2019-05-251-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@18198 e93f8b46-1217-0410-a6f0-8f06a7374b81
* New Permission: Edit own issue (#1248).Go MAEDA2019-04-251-1/+3
| | | | | | | Patch by Yuichi HARADA. git-svn-id: http://svn.redmine.org/redmine/trunk@18081 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Use Regexp#match? to reduce allocations of MatchData object (#28940).Go MAEDA2019-03-271-2/+2
| | | | | | | Patch by Pavel Rosický. git-svn-id: http://svn.redmine.org/redmine/trunk@18011 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Support frozen_string_literal in issue, journal, and query (#26561).Go MAEDA2019-03-171-2/+2
| | | | | | | Patch by Pavel Rosický. git-svn-id: http://svn.redmine.org/redmine/trunk@17980 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Add "frozen_string_literal: false" for all files (#26561).Go MAEDA2019-03-151-0/+2
| | | | | | | This will be changed to true in the future. git-svn-id: http://svn.redmine.org/redmine/trunk@17947 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Send emails asynchronously (#26791).Jean-Philippe Lang2018-10-101-1/+1
| | | | | | Custom async_* delivery methods are removed in favor of ActiveJob (Async by default). git-svn-id: http://svn.redmine.org/redmine/trunk@17588 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Cleanup: Remove Issue#each_notification and Journal#each_notification (#26791).Jean-Philippe Lang2018-10-061-15/+0
| | | | | | Patch by Holger Just. git-svn-id: http://svn.redmine.org/redmine/trunk@17584 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Extend Issue Summary to include subprojects (#2529).Go MAEDA2018-10-031-12/+12
| | | | | | | Patch by Mizuki ISHIKAWA. git-svn-id: http://svn.redmine.org/redmine/trunk@17563 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed that issue details page shows default values for custom fields that ↵Jean-Philippe Lang2018-09-231-0/+5
| | | | | | aren't actually set (#25726). git-svn-id: http://svn.redmine.org/redmine/trunk@17499 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Use pluck(:id) instead of collect(&:id) in app/models/issue.rb (#26711).Go MAEDA2018-07-291-2/+2
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@17455 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Use pluck(:id) instead of collect(&:id) (#26711).Go MAEDA2018-07-281-1/+1
| | | | | | | Patch by jwjw yy. git-svn-id: http://svn.redmine.org/redmine/trunk@17454 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Upgrade to Rails 5.2.0 (#23630).Jean-Philippe Lang2018-06-231-2/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@17410 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Cannot clear category field on copying an Issue (#28951).Jean-Philippe Lang2018-06-171-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@17395 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Clear subtask assignee during copy if is locked (#28946).Go MAEDA2018-06-171-0/+1
| | | | | | | Patch by Marius BALTEANU. git-svn-id: http://svn.redmine.org/redmine/trunk@17390 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Log automatic rescheduling of following issues to journal (#28649).Jean-Philippe Lang2018-06-101-2/+5
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@17373 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Clear target version when copying an issue if status is locked or closed ↵Go MAEDA2018-06-071-0/+1
| | | | | | | | | (#27863). Patch by Marius BALTEANU. git-svn-id: http://svn.redmine.org/redmine/trunk@17368 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix: Copying an issue fails if the issue is watched by a locked user (#28765).Go MAEDA2018-05-191-1/+2
| | | | | | | Patch by Marius BALTEANU. git-svn-id: http://svn.redmine.org/redmine/trunk@17342 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Allow selecting subprojects on new issue form (#12704).Go MAEDA2018-02-281-3/+12
| | | | | | | Patch by Marius BALTEANU. git-svn-id: http://svn.redmine.org/redmine/trunk@17217 e93f8b46-1217-0410-a6f0-8f06a7374b81
* The progress exceeding 99.5% is displayed as 100% (#27848).Jean-Philippe Lang2018-01-081-1/+1
| | | | | | Patch by Mizuki ISHIKAWA. git-svn-id: http://svn.redmine.org/redmine/trunk@17169 e93f8b46-1217-0410-a6f0-8f06a7374b81
* No validation errors when entering an invalid "Estimate hours" value (#27881).Jean-Philippe Lang2018-01-071-1/+1
| | | | | | Patch by Go MAEDA. git-svn-id: http://svn.redmine.org/redmine/trunk@17144 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Merged rails-5.1 branch (#23630).Jean-Philippe Lang2017-07-231-42/+25
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@16859 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Setting to disable automatic closing of duplicates (#26192).Jean-Philippe Lang2017-06-251-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@16697 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Update copyright.Jean-Philippe Lang2017-06-251-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@16685 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Set default assignee before validation (#26072).Jean-Philippe Lang2017-06-061-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@16619 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Make sure that the journal is not created if issue is saved.Jean-Philippe Lang2017-06-031-0/+5
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@16599 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Check tracker permissions when copying an issue (#25791).Jean-Philippe Lang2017-05-271-1/+10
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@16569 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Option to set a default assignee on each project (#482).Jean-Philippe Lang2017-04-081-3/+7
| | | | | | Patch by Felix Schäfer. git-svn-id: http://svn.redmine.org/redmine/trunk@16525 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed that watchers list is not updated when changing project on the new ↵Jean-Philippe Lang2017-04-061-0/+3
| | | | | | issue form (#17762). git-svn-id: http://svn.redmine.org/redmine/trunk@16511 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Option to copy watchers when copying issues (#10460).Jean-Philippe Lang2017-04-061-0/+3
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@16509 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Always set spent_hours instance variables to a Float in Issue instances ↵Jean-Philippe Lang2017-04-051-3/+3
| | | | | | | | (#25526). Patch by Holger Just. git-svn-id: http://svn.redmine.org/redmine/trunk@16491 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Reset status when copying issues (#23610).Jean-Philippe Lang2017-04-031-6/+4
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@16451 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixes indentation.Jean-Philippe Lang2017-03-131-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@16398 e93f8b46-1217-0410-a6f0-8f06a7374b81