summaryrefslogtreecommitdiffstats
path: root/app/models
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Use lambda form in model scopes (#12499)Jean-Baptiste Barth2012-12-0712-19/+19
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10949 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Adds an option for displaying the issue description on the issue list (#3447).Jean-Philippe Lang2012-12-061-1/+24
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10948 e93f8b46-1217-0410-a6f0-8f06a7374b81
* remove trailing white-space from app/models/issue_category.rbToshi MARUYAMA2012-12-041-1/+1
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10941 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Code cleanup.Jean-Philippe Lang2012-12-031-20/+10
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10939 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Replaces find(:first/:all) calls.Jean-Philippe Lang2012-12-031-12/+19
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10931 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Replaces find(:first) calls.Jean-Philippe Lang2012-12-035-11/+17
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10928 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Replaces find(:all) calls.Jean-Philippe Lang2012-12-021-4/+6
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10921 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Replaces find(:all) calls.Jean-Philippe Lang2012-12-0210-32/+29
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10917 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Replaces find(:all) calls.Jean-Philippe Lang2012-12-021-0/+2
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10916 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Makes User.current thread safe (#12097).Jean-Philippe Lang2012-12-021-2/+2
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10911 e93f8b46-1217-0410-a6f0-8f06a7374b81
* remove trailing white-spaces from app/models/repository.rbToshi MARUYAMA2012-11-281-2/+2
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10891 e93f8b46-1217-0410-a6f0-8f06a7374b81
* code layout cleanup app/models/issue_relation.rbToshi MARUYAMA2012-11-281-17/+33
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10889 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Code cleanup.Jean-Philippe Lang2012-11-271-3/+1
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10888 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Code cleanup.Jean-Philippe Lang2012-11-273-7/+8
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10887 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Validate email only if changed.Jean-Philippe Lang2012-11-271-1/+1
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10883 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Code cleanup.Jean-Philippe Lang2012-11-271-1/+1
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10882 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Code cleanup.Jean-Philippe Lang2012-11-271-8/+8
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10881 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed the behaviour for when rescheduling a parent task (#4590).Jean-Philippe Lang2012-11-241-1/+9
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10880 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Precede-Follow relation should move following issues earlier when ↵Jean-Philippe Lang2012-11-241-3/+8
| | | | | | rescheduling issue earlier (#4590). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10878 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Respond with 404 instead of 500 when requesting a wiki diff with invalid ↵Jean-Philippe Lang2012-11-241-1/+2
| | | | | | versions (#12434). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10877 e93f8b46-1217-0410-a6f0-8f06a7374b81