summaryrefslogtreecommitdiffstats
path: root/app/models/time_entry.rb
Commit message (Collapse)AuthorAgeFilesLines
* Merged r16284 (#23803).Jean-Philippe Lang2017-01-291-1/+5
| | | | git-svn-id: http://svn.redmine.org/redmine/branches/3.3-stable@16302 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
* Time entry with 2 digits year should not validate (#3107).Jean-Philippe Lang2013-02-241-0/+1
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11472 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Copyright for 2013 (#12788).Jean-Philippe Lang2013-01-121-1/+1
| | | | | | Patch by Daniel Felix. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11169 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Group events in the activity view (#12542).Jean-Philippe Lang2012-12-081-0/+1
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10951 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Rewrites named scopes with ARel queries.Jean-Philippe Lang2012-12-071-16/+13
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10950 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed that custom_fields property is ignored for time entries in REST API ↵Jean-Philippe Lang2012-06-091-1/+1
| | | | | | (#11112). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9783 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Copyright update.Jean-Philippe Lang2012-05-051-1/+1
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9636 e93f8b46-1217-0410-a6f0-8f06a7374b81
* model: replace Rails2 "named_scope" to Rails3 "scope"Toshi MARUYAMA2012-04-261-4/+4
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9537 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Prevent mass-assignment when adding/updating a time entry (#10390).Jean-Philippe Lang2012-03-061-0/+3
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9136 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Round hours when reading TimeEntry attribute.Jean-Philippe Lang2012-02-241-0/+9
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8980 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Removed after_initialize methods.Jean-Philippe Lang2011-12-181-1/+2
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8288 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Removed unnecessary calculations in time entries index.Jean-Philippe Lang2011-12-041-20/+12
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8085 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Adds named scopes for time entries index.Jean-Philippe Lang2011-12-041-1/+12
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8084 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Removed deprecated methods.Jean-Philippe Lang2011-11-291-8/+0
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7977 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Rails3: model: replace deprecated 'before_validation' method at TimeEntry modelToshi MARUYAMA2011-09-221-1/+2
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7453 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Rails3: model: replace deprecated 'validate' method at TimeEntry modelToshi MARUYAMA2011-09-221-1/+2
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7448 e93f8b46-1217-0410-a6f0-8f06a7374b81
* remove trailing white-spaces from time entry model source.Toshi MARUYAMA2011-05-171-12/+12
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5820 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Makes visible scopes accept projects option and deprecate Project.visible_by.Jean-Philippe Lang2011-04-051-1/+1
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5324 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Replaces TimeEntry.visible_by with a visible scope.Jean-Philippe Lang2011-03-161-2/+9
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5149 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixes TimeEntry#spent_on= so that datetimes don't get stored in SQLite3 (#7258).Jean-Philippe Lang2011-01-141-0/+3
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4708 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed: timelog link in the activity broken by recent refactoring (#6702).Jean-Philippe Lang2010-10-221-1/+1
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4277 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Change the TimelogController's to/from dates based on the project time entriesEric Davis2010-09-141-4/+12
| | | | | | | | Instead of looking for the earliest and latest time entry system wide for the dates in the form, now TimelogController will only look at the time entries for the current project (and parent/sub projects). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4087 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Refactor: move method to Model.Eric Davis2010-09-141-0/+8
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4086 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Force TimeEntry#hours default to nil (#3075, #4449).Jean-Philippe Lang2009-12-231-0/+1
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3232 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Adds spent time to the activity view (#3809).Jean-Philippe Lang2009-09-121-3/+7
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2877 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Changed Enumerations to use a Single Table InheritanceEric Davis2009-05-301-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | * Added migrations to change Enumerations to an STI relationship * Added TimeEntryActivity model (STI) * Added DocumentCategory model (STI) * Added IssuePriority model (STI) * Added Enumeration#get_subclasses to get a list of the subclasses of Enumeration * Changed Enumeration to use the STI type field instead of the opt field * Changed Enumeration#opt to return the old opt values but with a deprecation warning. * Removed Enumeration::OPTIONS * Removed the dynamic named_scopes in favor of specific named_scopes. Kept for compatibility reasons. * Added Enumeration#default so each subclass can easily find it's default record. * Fixed Enumeration#default to use the STI scoping with a fake default scope for finding Enumeration's default. * Added a 'all' named scope for getting all records in order by position. * Added Deprecation warnings to the old named_scopes in Enumerations. * Moved various methods off of Enumeration and onto the concrete classes * Changed the EnumerationsController to use types * Updated the Enumeration list template * Added has_many relationships to the Enumeration STI classes. * Fixes for tests. #3007 git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2777 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Merged Rails 2.2 branch. Redmine now requires Rails 2.2.2.Jean-Philippe Lang2009-02-211-5/+5
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2493 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Replaces Enumeration.get_values and Enumeration.default with named scopes.Jean-Philippe Lang2009-02-151-1/+1
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2472 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed: no error is raised when entering invalid hours on the issue update ↵Jean-Philippe Lang2009-01-091-2/+2
| | | | | | form (#2465). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2251 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Adds custom fields on time entries (#772).Jean-Philippe Lang2008-07-221-0/+1
| | | | git-svn-id: http://redmine.rubyforge.org/svn/trunk@1689 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed: Comment too long message when updating issue (#1550).Jean-Philippe Lang2008-06-301-1/+1
| | | | git-svn-id: http://redmine.rubyforge.org/svn/trunk@1608 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Adds atom feed on time entries details (#1479).Jean-Philippe Lang2008-06-171-0/+5
| | | | git-svn-id: http://redmine.rubyforge.org/svn/trunk@1560 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed: time entries created with the default activity even if a different ↵Jean-Philippe Lang2008-06-141-2/+4
| | | | | | one is specified (#1302). git-svn-id: http://redmine.rubyforge.org/svn/trunk@1533 e93f8b46-1217-0410-a6f0-8f06a7374b81