summaryrefslogtreecommitdiffstats
path: root/app/models
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix that bulk download raises Errno::EACCES on Windows (#7056).Go MAEDA2020-04-111-5/+8
| | | | | | | Patch by Yuichi HARADA. git-svn-id: http://svn.redmine.org/redmine/trunk@19688 e93f8b46-1217-0410-a6f0-8f06a7374b81
* CodeCleanup: Fix a RuboCop offense Layout/LeadingCommentSpace introduced in ↵Go MAEDA2020-04-111-1/+1
| | | | | | r19677. git-svn-id: http://svn.redmine.org/redmine/trunk@19687 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Don't use User.current in TimeEntryImport model but #user instead (#32774).Jean-Philippe Lang2020-04-051-1/+2
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@19678 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Set time entry author in controller (#32774).Jean-Philippe Lang2020-04-051-0/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@19677 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Creating time tracking entry for other user through rest API fails with 403 ↵Jean-Philippe Lang2020-04-051-1/+6
| | | | | | (#32774). git-svn-id: http://svn.redmine.org/redmine/trunk@19676 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Email address with Punycode top-level domain is not accepted (#32793).Jean-Philippe Lang2020-04-051-1/+1
| | | | | | Patch by Go MAEDA. git-svn-id: http://svn.redmine.org/redmine/trunk@19660 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix sort does not work with group by datetime columns (#33110).Jean-Philippe Lang2020-04-051-1/+6
| | | | | | Patch by Marius BALTEANU. git-svn-id: http://svn.redmine.org/redmine/trunk@19655 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Editing a time entry for a locked user changes the user to the current user ↵Jean-Philippe Lang2020-04-051-1/+3
| | | | | | | | (#32973). Patch by Marius BALTEANU. git-svn-id: http://svn.redmine.org/redmine/trunk@19651 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Replace File#readable? with Attachment#readable? (#7056).Go MAEDA2020-04-011-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@19631 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Download all attachments at once (#7056).Go MAEDA2020-03-211-0/+25
| | | | | | | Patch by Mizuki ISHIKAWA. git-svn-id: http://svn.redmine.org/redmine/trunk@19601 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Show warning and the reason when the issue cannot be closed or reopen ↵Go MAEDA2020-03-101-2/+25
| | | | | | | | | because of open subtask(s), blocking issue(s) or closed parent issue (#31589). Patch by Marius BALTEANU. git-svn-id: http://svn.redmine.org/redmine/trunk@19570 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Add a link to the issues list in a reminder email (#33099).Go MAEDA2020-03-071-1/+7
| | | | | | | Patch by Go MAEDA. git-svn-id: http://svn.redmine.org/redmine/trunk@19565 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix a RuboCop offense Style/MultipleComparison (#33083).Go MAEDA2020-03-071-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@19563 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Projects filter "Subproject of" does not work when the given value is "My ↵Go MAEDA2020-03-041-1/+1
| | | | | | | | | projects" or "My bookmarks" (#33083). Patch by Mizuki ISHIKAWA. git-svn-id: http://svn.redmine.org/redmine/trunk@19559 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Update copyright year in source files to 2020 (#33069).Go MAEDA2020-03-0378-78/+78
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@19553 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Auto select fields mapping in import based on the internal field name (ex: ↵Go MAEDA2020-02-193-0/+27
| | | | | | | | | | | | | estimared_hours, fixed_version, spent_on) or field label (Estimated hours, Version, Date) (#22913). * mappings are case insensitive * a field is auto mapped only if there is no mapping setting present for that field * "Current user" default value for User field when the user has permission to log time for other users is override by the auto mapped column Patch by Haihan Ji, Yuichi HARADA, and Marius BALTEANU. git-svn-id: http://svn.redmine.org/redmine/trunk@19524 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Use 'user' as internal field instead of user_id because the column accepts ↵Go MAEDA2020-02-191-2/+2
| | | | | | | | | also user login as value, not only the id (#22913). Patch by Marius BALTEANU. git-svn-id: http://svn.redmine.org/redmine/trunk@19523 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix logging time via a commit message for project specific activities (#29838).Go MAEDA2020-02-112-7/+12
| | | | | | | Patch by Jens Krämer. git-svn-id: http://svn.redmine.org/redmine/trunk@19512 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Add system setting for default results display format of project query (#32818).Go MAEDA2020-02-112-1/+9
| | | | | | | Patch by Takenori TAKAKI and Marius BALTEANU. git-svn-id: http://svn.redmine.org/redmine/trunk@19505 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Allow adding user groups as watchers for issues (#4511).Go MAEDA2020-02-063-4/+6
| | | | | | | Patch by Yuichi HARADA. git-svn-id: http://svn.redmine.org/redmine/trunk@19498 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Rails 6: Fix deprecation warning "Class level methods will no longer inherit ↵Go MAEDA2020-02-031-2/+2
| | | | | | | | | scoping" (#32911). Patch by Pavel Rosický. git-svn-id: http://svn.redmine.org/redmine/trunk@19490 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Reverts r19478 (#32897).Go MAEDA2020-01-3017-18/+18
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@19479 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix 'DEPRECATION WARNING: Uniqueness validator will no longer enforce case ↵Go MAEDA2020-01-2817-18/+18
| | | | | | | | | sensitive comparison in Rails 6.1.' (#32897). Patch by Marius BALTEANU. git-svn-id: http://svn.redmine.org/redmine/trunk@19478 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix ruby 2.7 warning: The last argument is used as the keyword parameter ↵Go MAEDA2020-01-231-1/+1
| | | | | | | | | (#32542, #31500). Patch by Seiei Miyagi. git-svn-id: http://svn.redmine.org/redmine/trunk@19454 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Enable users to receive email notifications about high issues (only) (#32628).Go MAEDA2020-01-213-0/+9
| | | | | | | Patch by Jan Schulz-Hofen. git-svn-id: http://svn.redmine.org/redmine/trunk@19449 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Add IssuePriority#high? and #low? helpers (#32628).Go MAEDA2020-01-211-0/+8
| | | | | | | Patch by Jan Schulz-Hofen. git-svn-id: http://svn.redmine.org/redmine/trunk@19448 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Extract finding the default or "middle" issue priority into its own class ↵Go MAEDA2020-01-211-3/+10
| | | | | | | | | method (#32628). Patch by Jan Schulz-Hofen. git-svn-id: http://svn.redmine.org/redmine/trunk@19447 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Use existing scopes instead of one-off AR condition (#32628).Go MAEDA2020-01-211-1/+1
| | | | | | | Patch by Jan Schulz-Hofen. git-svn-id: http://svn.redmine.org/redmine/trunk@19446 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Make languages in Highlighted code button in toolbar customizable (#32528).Go MAEDA2020-01-141-1/+12
| | | | | | | Patch by Mizuki ISHIKAWA. git-svn-id: http://svn.redmine.org/redmine/trunk@19429 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix sort projects table by custom field (#32769).Go MAEDA2020-01-121-1/+1
| | | | | | | Patch by Marius BALTEANU. git-svn-id: http://svn.redmine.org/redmine/trunk@19421 e93f8b46-1217-0410-a6f0-8f06a7374b81
* CSV import does not keep the project it was clicked from (#21766).Jean-Philippe Lang2019-12-201-1/+9
| | | | | | Patch by Marius BALTEANU. git-svn-id: http://svn.redmine.org/redmine/trunk@19381 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Issue relations filter lacks "is not" (#32546).Go MAEDA2019-12-121-1/+1
| | | | | | | Patch by Alexander Achenbach. git-svn-id: http://svn.redmine.org/redmine/trunk@19363 e93f8b46-1217-0410-a6f0-8f06a7374b81
* cleanup: rubocop: fix Layout/ClosingParenthesisIndentation in ↵Toshi MARUYAMA2019-11-261-7/+9
| | | | | | app/models/journal.rb git-svn-id: http://svn.redmine.org/redmine/trunk@19313 e93f8b46-1217-0410-a6f0-8f06a7374b81
* cleanup: rubocop: fix Layout/IndentFirstArgument in app/models/journal.rbToshi MARUYAMA2019-11-251-3/+6
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@19307 e93f8b46-1217-0410-a6f0-8f06a7374b81
* cleanup: rubocop: fix Layout/IndentFirstHashElement in app/models/setting.rbToshi MARUYAMA2019-11-251-5/+5
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@19302 e93f8b46-1217-0410-a6f0-8f06a7374b81
* code layout clean up app/models/user.rbToshi MARUYAMA2019-11-251-1/+4
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@19297 e93f8b46-1217-0410-a6f0-8f06a7374b81
* cleanup: rubocop: fix Layout/MultilineHashBraceLayout and ↵Toshi MARUYAMA2019-11-251-8/+6
| | | | | | Layout/SpaceInsideBlockBraces in app/models/auth_source_ldap.rb git-svn-id: http://svn.redmine.org/redmine/trunk@19293 e93f8b46-1217-0410-a6f0-8f06a7374b81
* cleanup: rubocop: fix Layout/IndentFirstHashElement in ↵Toshi MARUYAMA2019-11-251-5/+5
| | | | | | app/models/auth_source_ldap.rb git-svn-id: http://svn.redmine.org/redmine/trunk@19292 e93f8b46-1217-0410-a6f0-8f06a7374b81
* cleanup: rubocop: fix Layout/EmptyLineAfterGuardClause in app/models/setting.rbToshi MARUYAMA2019-11-251-0/+6
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@19288 e93f8b46-1217-0410-a6f0-8f06a7374b81
* code layout clean up app/models/workflow_transition.rbToshi MARUYAMA2019-11-251-1/+6
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@19286 e93f8b46-1217-0410-a6f0-8f06a7374b81
* cleanup: rubocop: fix Layout/SpaceInsidePercentLiteralDelimiters in ↵Toshi MARUYAMA2019-11-241-1/+1
| | | | | | app/models/project.rb git-svn-id: http://svn.redmine.org/redmine/trunk@19280 e93f8b46-1217-0410-a6f0-8f06a7374b81
* cleanup: rubocop: fix Layout/SpaceAfterComma in app/models/mailer.rbToshi MARUYAMA2019-11-241-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@19271 e93f8b46-1217-0410-a6f0-8f06a7374b81
* cleanup: rubocop: fix Layout/SpaceAfterComma in app/models/enumeration.rbToshi MARUYAMA2019-11-241-1/+2
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@19270 e93f8b46-1217-0410-a6f0-8f06a7374b81
* cleanup: rubocop: fix Layout/SpaceInsideBlockBraces in app/models/mailer.rbToshi MARUYAMA2019-11-241-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@19268 e93f8b46-1217-0410-a6f0-8f06a7374b81
* cleanup: rubocop: fix Layout/SpaceAfterComma in app/models/query.rbToshi MARUYAMA2019-11-241-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@19256 e93f8b46-1217-0410-a6f0-8f06a7374b81
* cleanup: rubocop: fix Layout/IndentFirstArrayElement in app/models/setting.rbToshi MARUYAMA2019-11-241-13/+17
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@19248 e93f8b46-1217-0410-a6f0-8f06a7374b81
* cleanup: rubocop: fix Style/MultilineIfModifier in ↵Toshi MARUYAMA2019-11-231-12/+15
| | | | | | app/models/repository/subversion.rb git-svn-id: http://svn.redmine.org/redmine/trunk@19215 e93f8b46-1217-0410-a6f0-8f06a7374b81
* cleanup: rubocop: fix Layout/EmptyLineAfterGuardClause in ↵Toshi MARUYAMA2019-11-231-0/+1
| | | | | | app/models/repository/subversion.rb git-svn-id: http://svn.redmine.org/redmine/trunk@19214 e93f8b46-1217-0410-a6f0-8f06a7374b81
* cleanup: rubocop: fix Layout/SpaceAfterComma in app/models/repository/git.rbToshi MARUYAMA2019-11-231-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@19208 e93f8b46-1217-0410-a6f0-8f06a7374b81
* cleanup: rubocop: fix Layout/EmptyLineAfterGuardClause in ↵Toshi MARUYAMA2019-11-221-0/+4
| | | | | | app/models/repository/git.rb git-svn-id: http://svn.redmine.org/redmine/trunk@19174 e93f8b46-1217-0410-a6f0-8f06a7374b81