summaryrefslogtreecommitdiffstats
path: root/app/models/time_entry.rb
Commit message (Collapse)AuthorAgeFilesLines
* Merged r22311 from trunk to 5.0-stable (#39079).Go MAEDA2023-09-201-1/+1
| | | | git-svn-id: https://svn.redmine.org/redmine/branches/5.0-stable@22312 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Update copyright year to 2023 (#38141).Go MAEDA2023-01-011-1/+1
| | | | git-svn-id: https://svn.redmine.org/redmine/branches/5.0-stable@22014 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Merged r21668 and r21669 to 5.0-stable (#33914).Marius Balteanu2022-06-201-1/+1
| | | | git-svn-id: https://svn.redmine.org/redmine/branches/5.0-stable@21670 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Merged r21645-r21646 and r21657 to 5.0-stable (#37255).Marius Balteanu2022-06-201-1/+5
| | | | git-svn-id: https://svn.redmine.org/redmine/branches/5.0-stable@21658 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Update copyright year in source files to 2022 (#36379).Go MAEDA2022-01-021-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@21342 e93f8b46-1217-0410-a6f0-8f06a7374b81
* When updating an issue, allow adding time entry on an issue that was visible ↵Marius Balteanu2021-07-261-0/+7
| | | | | | for the previous assignee (#34856). git-svn-id: http://svn.redmine.org/redmine/trunk@21081 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Update copyright year in source files to 2021 (#33069).Go MAEDA2021-03-251-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@20846 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Delete spent time custom field values not visible by the user after ↵Go MAEDA2021-03-151-1/+8
| | | | | | | | | assignment (#33550). Patch by Marius BALTEANU. git-svn-id: http://svn.redmine.org/redmine/trunk@20802 e93f8b46-1217-0410-a6f0-8f06a7374b81
* remove spaces inside {} of app/models/time_entry.rbToshi MARUYAMA2020-11-171-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@20407 e93f8b46-1217-0410-a6f0-8f06a7374b81
* remove spaces inside {} of app/models/time_entry.rbToshi MARUYAMA2020-11-161-3/+3
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@20397 e93f8b46-1217-0410-a6f0-8f06a7374b81
* use "do end" instead of {} at ActiveRecord scope lambda of ↵Toshi MARUYAMA2020-11-101-6/+6
| | | | | | app/models/time_entry.rb git-svn-id: http://svn.redmine.org/redmine/trunk@20329 e93f8b46-1217-0410-a6f0-8f06a7374b81
* shorten long line of app/models/time_entry.rbToshi MARUYAMA2020-10-241-12/+18
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@20181 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Evaluate acts_as_activity_provider's scope lazily (#33664).Go MAEDA2020-10-171-1/+1
| | | | | | | Patch by Pavel Rosický. git-svn-id: http://svn.redmine.org/redmine/trunk@20148 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
* 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
* 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
* Update copyright year in source files to 2020 (#33069).Go MAEDA2020-03-031-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@19553 e93f8b46-1217-0410-a6f0-8f06a7374b81
* cleanup: rubocop: fix Layout/BlockAlignment in app/models/time_entry.rbToshi MARUYAMA2019-11-091-5/+6
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@19028 e93f8b46-1217-0410-a6f0-8f06a7374b81
* cleanup: rubocop: fix Layout/AlignArguments in app/models/time_entry.rbToshi MARUYAMA2019-11-081-2/+5
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@18948 e93f8b46-1217-0410-a6f0-8f06a7374b81
* code cleanup: rubocop: fix Style/ParenthesesAroundCondition in ↵Toshi MARUYAMA2019-10-221-2/+2
| | | | | | app/models/time_entry.rb git-svn-id: http://svn.redmine.org/redmine/trunk@18834 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Per role visibility settings for spent time custom fields (#31859).Go MAEDA2019-08-091-0/+7
| | | | | | | Patch by Marius BALTEANU. git-svn-id: http://svn.redmine.org/redmine/trunk@18358 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
* Enable frozen_string_literal for some files under app and lib directory ↵Go MAEDA2019-03-161-1/+1
| | | | | | (#26561). git-svn-id: http://svn.redmine.org/redmine/trunk@17977 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
* Adds a permission to log time for another user (#3848).Jean-Philippe Lang2018-12-161-2/+19
| | | | | | Patch by Marius BALTEANU. git-svn-id: http://svn.redmine.org/redmine/trunk@17755 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Setting to restrict spent times on future dates (#3322).Go MAEDA2018-12-111-0/+3
| | | | | | | Patch by Marius BALTEANU. git-svn-id: http://svn.redmine.org/redmine/trunk@17719 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Merged rails-5.1 branch (#23630).Jean-Philippe Lang2017-07-231-2/+0
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@16859 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Adds settings for time entry hours validation (#24005).Jean-Philippe Lang2017-07-191-1/+27
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@16832 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
* Adds a scope to left join the issue.Jean-Philippe Lang2017-04-041-0/+3
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@16481 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Only show issue details in time entry activity events if the issue is ↵Jean-Philippe Lang2017-01-291-1/+5
| | | | | | | | visible (#23803). Patch by Holger Just. git-svn-id: http://svn.redmine.org/redmine/trunk@16284 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Adds settings to make the issue and/or comment fields mandatory for time ↵Jean-Philippe Lang2017-01-121-0/+2
| | | | | | | | logs (#24577). Patch by Marius BALTEANU. git-svn-id: http://svn.redmine.org/redmine/trunk@16176 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Updates copyright for 2016.Jean-Philippe Lang2016-03-131-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@15238 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Don't let users log time on issues they cannot see in their projects (#21150).Jean-Philippe Lang2015-11-041-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@14796 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Raises time entries comments limit to 1024 (#19885).Jean-Philippe Lang2015-09-211-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@14621 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Validates that activity belongs to project activities (#19656).Jean-Philippe Lang2015-05-301-0/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@14288 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Adds a role setting that viewing all or own time entries (#8929).Jean-Philippe Lang2015-05-301-2/+30
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@14275 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed validation when logging time on issue (#19464).Jean-Philippe Lang2015-04-121-3/+8
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@14162 e93f8b46-1217-0410-a6f0-8f06a7374b81
* TimeEntry acts_as_activity_provider scope should joins(:project) (#18818).Jean-Philippe Lang2015-02-071-1/+1
| | | | | | Patch by Ondřej Ezr. git-svn-id: http://svn.redmine.org/redmine/trunk@13971 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
* Removed dead code, Rails4 handles that in its attribute writer.Jean-Philippe Lang2014-12-051-3/+0
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13716 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Removed unused scopes.Jean-Philippe Lang2014-12-051-15/+0
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13715 e93f8b46-1217-0410-a6f0-8f06a7374b81
* remove unneeded "references" of joinsToshi MARUYAMA2014-10-241-3/+0
| | | | | | "references" is needed for includes, but not needed for joins. git-svn-id: http://svn.redmine.org/redmine/trunk@13501 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Removed unneeded :foreign_key option on belongs_to associations.Jean-Philippe Lang2014-10-221-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13484 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Merged rails-4.1 branch (#14534).Jean-Philippe Lang2014-10-221-4/+10
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13482 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Let the new time_entry form be submitted without project (#17954).Jean-Philippe Lang2014-10-041-6/+8
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13422 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Add time entries custom fields to the context menu for quick bulk edit (#17484).Jean-Philippe Lang2014-07-291-0/+10
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13335 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Let user choose an issue of another project when updating a time entry (#16338).Jean-Philippe Lang2014-03-211-0/+10
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@12990 e93f8b46-1217-0410-a6f0-8f06a7374b81
* update copyright year (#15977)Toshi MARUYAMA2014-01-291-1/+1
| | | | | | Contributed by Daniel Felix. git-svn-id: http://svn.redmine.org/redmine/trunk@12736 e93f8b46-1217-0410-a6f0-8f06a7374b81