summaryrefslogtreecommitdiffstats
path: root/app/models
Commit message (Collapse)AuthorAgeFilesLines
* Removed sort order on issues association.Jean-Philippe Lang2012-03-041-1/+1
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9075 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Rails 3.1 compatibility.Jean-Philippe Lang2012-03-041-2/+2
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9074 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Rails 3.1 compatibility.Jean-Philippe Lang2012-03-041-5/+4
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9073 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Adds Redmine::Utils.random_hex for generating a random hex string.Jean-Philippe Lang2012-03-043-4/+4
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9071 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Use a single query to retrieve issues_count, open_issues_count and ↵Jean-Philippe Lang2012-03-021-3/+21
| | | | | | closed_issues_count. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9056 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Adds an optional LDAP filter (#1060).Jean-Philippe Lang2012-03-011-2/+22
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9044 e93f8b46-1217-0410-a6f0-8f06a7374b81
* MailHandler: fixed that sender's fullname is not unquoted (#10334).Jean-Philippe Lang2012-03-011-1/+1
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9043 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixes r9029.Jean-Philippe Lang2012-02-281-8/+7
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9030 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Implements the behaviour expected in user_test.Jean-Philippe Lang2012-02-281-1/+2
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9029 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Mailer#url_for not called in views with Rails 3.1.Jean-Philippe Lang2012-02-271-5/+0
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9023 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Override @#url_for@ in AM to force generation of absolute links (#10251).Etienne Massip2012-02-271-0/+5
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9022 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Rails 3.1 compatibility (order declared on association takes precedence).Jean-Philippe Lang2012-02-261-3/+2
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9015 e93f8b46-1217-0410-a6f0-8f06a7374b81
* remove trailing white-spaces from app/models/attachment.rbToshi MARUYAMA2012-02-261-3/+3
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9012 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed Version#issues_progress for Rails 3.1.Jean-Philippe Lang2012-02-251-2/+2
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8986 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Use :joins instead of :include.Jean-Philippe Lang2012-02-241-1/+1
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8982 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
* Cleanup instance variables when reloading a project.Jean-Philippe Lang2012-02-241-0/+13
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8979 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Removed useless option.Jean-Philippe Lang2012-02-241-1/+1
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8978 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Use subclasses method instead of class variable.Jean-Philippe Lang2012-02-241-1/+1
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8977 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Rails3: scm: mercurial: use .to_s for overriding human_attribute_name parameterToshi MARUYAMA2012-02-241-1/+1
| | | | | | On Rails 3.0.11, parameter is symbol not string in activerecord validation. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8976 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Rails3: scm: git: use .to_s for overriding human_attribute_name parameterToshi MARUYAMA2012-02-241-1/+1
| | | | | | On Rails 3.0.11, parameter is symbol not string in activerecord validation. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8975 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Rails3: scm: filesystem: use .to_s for overriding human_attribute_name parameterToshi MARUYAMA2012-02-241-1/+1
| | | | | | On Rails 3.0.11, parameter is symbol not string in activerecord validation. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8974 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Rails3: scm: darcs: use .to_s for overriding human_attribute_name parameterToshi MARUYAMA2012-02-241-1/+1
| | | | | | On Rails 3.0.11, parameter is symbol not string in activerecord validation. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8973 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Rails3: scm: cvs: use .to_s for overriding human_attribute_name parameterToshi MARUYAMA2012-02-241-1/+1
| | | | | | On Rails 3.0.11, parameter is symbol not string in activerecord validation. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8972 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Rails3: scm: bazaar: use .to_s for overriding human_attribute_name parameterToshi MARUYAMA2012-02-241-1/+1
| | | | | | On Rails 3.0.11, parameter is symbol not string in activerecord validation. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8971 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Rails3: scm: use .to_s for overriding human_attribute_name parameter at ↵Toshi MARUYAMA2012-02-241-1/+1
| | | | | | | | repository model On Rails 3.0.11, parameter is symbol not string in activerecord validation. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8970 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Rails3: use .to_s for overriding human_attribute_name parameter at group modelToshi MARUYAMA2012-02-241-1/+1
| | | | | | On Rails 3.0.11, parameter is symbol not string in activerecord validation. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8969 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: mercurial: use to_s for revision in find_changeset_by_name methodToshi MARUYAMA2012-02-231-5/+6
| | | | | | | | | | | | On Rails 3.0.11, functional test fails. <pre> Error: test_diff_two_revs(RepositoriesMercurialControllerTest) NoMethodError: undefined method `empty?' for 4:Fixnum app/models/repository/mercurial.rb:76:in `find_changeset_by_name' </pre> git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8938 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Better message for file size validation error.Jean-Philippe Lang2012-02-231-1/+1
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8937 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: use to_s for revision in find_changeset_by_name methodToshi MARUYAMA2012-02-231-2/+3
| | | | | | | | | | | | On Rails 3.0.11, Subversion functional test fails. <pre> Error: test_directory_diff(RepositoriesSubversionControllerTest) NoMethodError: undefined method `match' for 2:Fixnum app/models/repository.rb:234:in `find_changeset_by_name' </pre> git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8931 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Adds support for adding attachments to issues through the REST API (#8171).Jean-Philippe Lang2012-02-231-5/+16
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8928 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed magic link in the note added when closing an issue by a commit from a ↵Jean-Philippe Lang2012-02-201-4/+8
| | | | | | subproject (#10284). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8917 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Friendly response when the LDAP connection fails.Jean-Philippe Lang2012-02-192-2/+6
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8911 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed random failures in RepositoriesControllerTest with ruby-1.8.7-p358.Jean-Philippe Lang2012-02-191-1/+5
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8909 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Require net/ldap.Jean-Philippe Lang2012-02-191-0/+1
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8907 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Adds a rake test that removes old unattached uploads (#10253).Jean-Philippe Lang2012-02-161-1/+1
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8893 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Better handling of attachments when issue validation fails (#10253).Jean-Philippe Lang2012-02-162-40/+44
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8891 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Makes user autocompleters work with firstname and lastname.Jean-Philippe Lang2012-02-142-12/+14
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8875 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed: error when creating a project with a version format custom field ↵Jean-Philippe Lang2012-02-131-4/+9
| | | | | | (#10218). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8865 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Prevent ActiveRecord::StaleObjectError in Issue#reschedule_after (#7920).Jean-Philippe Lang2012-02-121-1/+7
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8864 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed potential error when sorting members without role (#10053).Jean-Philippe Lang2012-02-122-2/+14
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8863 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Adds a News#commentable? method to easily specific additional rules.Jean-Philippe Lang2012-02-111-0/+5
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8854 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed that changesets parents associations are not deleted when deleting a ↵Jean-Philippe Lang2012-02-111-1/+7
| | | | | | repository. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8847 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: git: reduce saving heads times in fetching revisions (#8857, #9472)Toshi MARUYAMA2012-02-111-2/+7
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8840 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: git: call "git log" only once instead of per branch in fetching ↵Toshi MARUYAMA2012-02-111-28/+39
| | | | | | revisions (#8857) git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8839 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: git: raise exception if "git log" is error and block is given in lib ↵Toshi MARUYAMA2012-02-101-12/+16
| | | | | | revision method (#8857) git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8837 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Use #reduce instead of #inject for getting the intersection of arrays.Jean-Philippe Lang2012-02-091-1/+1
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8827 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Code cleanup.Jean-Philippe Lang2012-02-091-1/+1
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8826 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Bulk-edit custom fields through context menu (#6296).Jean-Philippe Lang2012-02-091-1/+5
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8824 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: git: add model method to get heads from extra_info branches hash (#8857)Toshi MARUYAMA2012-02-091-0/+7
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8816 e93f8b46-1217-0410-a6f0-8f06a7374b81