summaryrefslogtreecommitdiffstats
path: root/app/models
Commit message (Collapse)AuthorAgeFilesLines
...
* Test failure with JRuby 1.7.2 (#12228).Jean-Philippe Lang2013-01-271-1/+2
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11280 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Always notify project members about news unless they turned off all ↵Jean-Philippe Lang2013-01-262-28/+20
| | | | | | notifications (#4700). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11271 e93f8b46-1217-0410-a6f0-8f06a7374b81
* remove trailing white-space from app/models/attachment.rbToshi MARUYAMA2013-01-261-1/+1
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11267 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Adds "sorted" scope to Principal and User and sort users/groups properly.Jean-Philippe Lang2013-01-232-0/+11
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11259 e93f8b46-1217-0410-a6f0-8f06a7374b81
* "Parent task is invalid" while editing child issues with restricted Issues ↵Jean-Philippe Lang2013-01-201-1/+1
| | | | | | Visibility (#12851). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11228 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Code cleanup.Jean-Philippe Lang2013-01-201-6/+9
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11222 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Split "Manage documents" permission into create, edit and delete permissions ↵Jean-Philippe Lang2013-01-201-1/+1
| | | | | | (#12401). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11206 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Removed useless require 'iconv' (#12787).Jean-Philippe Lang2013-01-122-3/+0
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11176 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Makes issue custom fields available as timelog columns (#1766).Jean-Philippe Lang2013-01-122-0/+23
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11174 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Adds issue custom fields to time entries filters (#10191).Jean-Philippe Lang2013-01-121-1/+1
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11171 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Copyright for 2013 (#12788).Jean-Philippe Lang2013-01-1274-74/+74
| | | | | | Patch by Daniel Felix. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11169 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Ability to uncheck "Multiple values" for existing custom fields (#12251).Jean-Philippe Lang2013-01-121-0/+17
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11167 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Gantt perf: fixed that Project#start_date and #due_date run way too much ↵Jean-Philippe Lang2013-01-062-8/+14
| | | | | | queries. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11135 e93f8b46-1217-0410-a6f0-8f06a7374b81
* remove trailing white-spaces from app/models/mail_handler.rbToshi MARUYAMA2013-01-061-2/+2
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11127 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Negative estimated hours should not be valid (#12735).Jean-Philippe Lang2013-01-051-1/+1
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11125 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Adds a custom validator for dates (#12736).Jean-Philippe Lang2013-01-052-16/+3
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11124 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Make sure that dates are stored as YYYY-MM-DD in journal details (#12713).Jean-Philippe Lang2013-01-041-2/+5
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11117 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Prevent sqlserver adapter from breaking the sub-query (#12713).Jean-Philippe Lang2013-01-041-1/+1
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11116 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Pass the order option as an array to satisfy sqlserver adapter (#12713).Jean-Philippe Lang2013-01-041-6/+4
| | | | | | | | | | | | Unlike other adapters, the sqlserver adapter processes the order option and wipes it when using functions. Here we can see a "ASC" inserted in the COALESCE call: irb(main):001:0> Issue.order("coalesce(estimated_hours, 0), id").to_sql => "SELECT [issues].* FROM [issues] ORDER BY coalesce(estimated_hours ASC, 0) ASC, id ASC" This does not happen when passing the order SQL fragments separately. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11115 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Deprecates Version#*_pourcent in favour of #*_percent (#12724).Jean-Philippe Lang2013-01-042-5/+17
| | | | | | Patch by Daniel Felix. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11113 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Make sure we don't cast an empty string to numeric (#12713).Jean-Philippe Lang2013-01-032-7/+7
| | | | | | SQLServer evaluates the CAST condition even if the <> '' condition is false. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11103 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Use joins instead of sub-queries in group by/sort by when using custom ↵Jean-Philippe Lang2013-01-032-13/+23
| | | | | | | | fields (#12713). Sub-queries in group by are not supported by SQLServer. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11102 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Repository changesets are already sorted by committed_on DESC (#12713).Jean-Philippe Lang2013-01-031-2/+1
| | | | | | SQLServer raises an error because committed_on is specified twice in the order by list. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11101 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Prevents position to be specified more than once in the order by list which ↵Jean-Philippe Lang2013-01-031-1/+1
| | | | | | is not supported by SQLServer (#12713). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11100 e93f8b46-1217-0410-a6f0-8f06a7374b81
* SQLServer: rule is a reserved keyword (#12713).Jean-Philippe Lang2013-01-031-2/+2
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11099 e93f8b46-1217-0410-a6f0-8f06a7374b81
* SQLServer: The size (60) given to the type 'decimal' exceeds the maximum ↵Jean-Philippe Lang2013-01-032-7/+7
| | | | | | allowed (#12713). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11098 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Typo in app/models/tracker.rb (#12707).Jean-Philippe Lang2013-01-021-1/+1
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11090 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Auto-populate fields while creating a new user with LDAP (#10286).Jean-Philippe Lang2012-12-262-7/+53
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11080 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Code cleanup, use named routes.Jean-Philippe Lang2012-12-221-0/+5
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11068 e93f8b46-1217-0410-a6f0-8f06a7374b81
* remove trailing white-spaces from app/models/issue_relation.rbToshi MARUYAMA2012-12-211-2/+2
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11061 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Code cleanup.Jean-Philippe Lang2012-12-133-4/+4
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10994 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed that validation fails when receiving an email with list custom fields ↵Jean-Philippe Lang2012-12-131-1/+7
| | | | | | (#12400). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10992 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Store attachments in subdirectories (#5298).Jean-Philippe Lang2012-12-131-7/+38
| | | | | | Existing files can be moved to their target subdirectories using rake redmine:attachments:move_to_subdirectories. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10990 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Moved IssueRelations to IssueRelation::Relations.Jean-Philippe Lang2012-12-102-15/+15
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10979 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Merged ajax_upload branch (#3957).Jean-Philippe Lang2012-12-101-2/+10
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10977 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Makes time entry custom fields available for display on the time entries ↵Jean-Philippe Lang2012-12-091-1/+8
| | | | | | list (#1766). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10972 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Adds filters for custom fields related to the project and user of time ↵Jean-Philippe Lang2012-12-091-0/+1
| | | | | | entries (#10191). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10971 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Adds filters for regular/custom fields to the time entries list/report (#10191).Jean-Philippe Lang2012-12-092-2/+51
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10970 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed syntax for ruby1.8.Jean-Philippe Lang2012-12-091-1/+1
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10969 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Adds TimeEntryQuery for listing time entries.Jean-Philippe Lang2012-12-092-5/+108
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10967 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Moved build_query_from_params helper to Query#build_from_params.Jean-Philippe Lang2012-12-091-0/+15
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10966 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Moves issue specific code to IssueQuery.Jean-Philippe Lang2012-12-092-112/+128
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10965 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Adds STI to Query model. Issue queries are now IssueQuery instances.Jean-Philippe Lang2012-12-093-299/+324
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10964 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Use inheritable class attributes in Query model.Jean-Philippe Lang2012-12-091-53/+46
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10963 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Use \A and \z in validation regexps.Jean-Philippe Lang2012-12-081-1/+1
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10961 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Use \A and \z in validation regexps.Jean-Philippe Lang2012-12-086-7/+7
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10960 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Cleanup dependencies in Project model.Jean-Philippe Lang2012-12-081-2/+2
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10959 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Moved user status constants to Principal model.Jean-Philippe Lang2012-12-082-6/+6
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10958 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Group events in the activity view (#12542).Jean-Philippe Lang2012-12-084-0/+4
| | | | 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-0712-55/+55
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10950 e93f8b46-1217-0410-a6f0-8f06a7374b81