summaryrefslogtreecommitdiffstats
path: root/app/models
Commit message (Collapse)AuthorAgeFilesLines
...
* Raised maximum length of project names and identifiers to 255 and 100 ↵Jean-Philippe Lang2010-11-141-2/+5
| | | | | | respectively (#6446). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4402 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Makes MailHandler ignore invalid keyword values to avoid validation failures.Jean-Philippe Lang2010-11-121-6/+7
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4396 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Makes MailHandler accept localized keywords for default or user language ↵Jean-Philippe Lang2010-11-121-2/+17
| | | | | | (#6112). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4395 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Makes MailHandler accept all issue attributes and custom fields that can be ↵Jean-Philippe Lang2010-11-122-50/+50
| | | | | | set/updated (#4071, #4807, #5622, #6110). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4394 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Moved some permission checks for issue update from controller to model.Jean-Philippe Lang2010-11-111-3/+21
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4393 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Allow non-unique names for projects (#630).Jean-Philippe Lang2010-11-111-1/+1
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4391 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed: unchecking status filter on the issue list has no effect (#6844).Jean-Philippe Lang2010-11-071-2/+4
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4387 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Adds a "visible" option on User and Project custom fields (#1738).Jean-Philippe Lang2010-11-071-0/+4
| | | | | | If set to false, the custom field won't be display on user profile/project overview. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4382 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed: URLs broken in wiki notifications (#6838).Jean-Philippe Lang2010-11-061-3/+3
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4373 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Remove email quotes (>) when searching for incoming email delimiters. #2852 ↵Eric Davis2010-11-021-1/+1
| | | | | | | | | | #6628 Changes the email truncation so a delimiter can be prefixed by email quotes or spaces ("> Eric said..."). This will let it be combined with a "--- Reply above ---" delimiter to match "> --- Reply above ---" git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4361 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Refactor: use :id instead of :page when linking to Wiki PagesEric Davis2010-10-273-8/+8
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4296 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix wiki links on the activity page. #6746Eric Davis2010-10-262-2/+2
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4294 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Improved error message when trying to access an archived project (#2995).Jean-Philippe Lang2010-10-231-0/+4
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4285 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Refactor: move method to model with compatibility wrapperEric Davis2010-10-221-0/+12
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4282 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
* Fixed: precedes/follows relations no longer update start/due dates (#5803).Jean-Philippe Lang2010-10-191-2/+2
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4263 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Remember the selected "Member of Role" and "Member of Group" options. #6467Eric Davis2010-10-161-2/+2
| | | | | | Contributed by Yuki Kita git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4260 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Change Project#notified_users to check for the 'all' notification option. #6541Eric Davis2010-10-101-2/+3
| | | | | | | | | | | | The previous mail_notification? check would always pass since the notifications where converted to strings and strings are always true. Also changed Project#recipients to use #notified_users instead of duplicated code. Based on contribution by Felix Schäfer. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4247 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Don't duplicate users in Issue#assignable_users. From r4240Eric Davis2010-10-071-1/+1
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4241 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Allow assigning issues back to the author. #4199Eric Davis2010-10-071-1/+3
| | | | | | | | This allows an issue to be reassigned to the author even if they are not a project member. Useful when passing back an issue to get more information from the author. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4240 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Code cleanup: renamed variables in User#allowed_to? with explicit namesJean-Baptiste Barth2010-10-061-11/+11
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4234 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed: User#allowed_to? returning true in any case if array of projects had ↵Jean-Baptiste Barth2010-10-061-2/+4
| | | | | | only one item (#5332) git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4233 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Added ability to specify multiple projects in User#allowed_to? (#5332)Jean-Baptiste Barth2010-09-291-3/+13
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4227 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Refactor: move method to modelEric Davis2010-09-281-0/+11
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4224 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Allow admins to edit user's email notifications and preferences. #3503Eric Davis2010-09-281-1/+1
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4223 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Added three new notifiable events based on issue attributesEric Davis2010-09-281-1/+6
| | | | | | | | * issue_note_added * issue_status_updated * issue_priority_updated git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4221 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Add a default mail notification setting for new usersEric Davis2010-09-281-1/+1
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4219 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Added User#notify_about? to check when a user should be notified about an eventEric Davis2010-09-282-3/+39
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4218 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Converted User#mail_notification from a boolean to a string.Eric Davis2010-09-282-2/+11
| | | | | | The string will now store which type of notification option to use. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4216 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixes reverting an issue to a status with a done_ratio of 0%. #5170Eric Davis2010-09-261-3/+3
| | | | | | Contributed by Felix Schäfer git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4186 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Revert "Fixed: gantt broken when no due date on project issues and versions."Eric Davis2010-09-261-3/+2
| | | | | | | | | | It broke the tests for overdue projects and isn't a good way to fix #6350 because it makes an assumption that a project is due Today and will still error if issue tracking is disabled. This reverts commit a7fd592db4037d635d04ca5ce3f01d0af3f0c8ae. (r4178) git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4184 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed: gantt broken when no due date on project issues and versions.Jean-Philippe Lang2010-09-261-2/+3
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4178 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Added a users options to the reminders emailEric Davis2010-09-201-0/+5
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4167 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Add User#allowed_to_globally? which wraps User#allowed_to?Eric Davis2010-09-201-0/+6
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4164 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Updated issue delete confirmation when it has child issues. #6191Eric Davis2010-09-201-0/+5
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4105 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed non standard SQL syntax. #6413Jean-Baptiste Barth2010-09-161-1/+1
| | | | | | Contributed by Juan G git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4091 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Change the TimelogController's to/from dates based on the project time entriesEric Davis2010-09-142-4/+21
| | | | | | | | 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
* Refactor: move method to Project#css_classesEric Davis2010-09-101-0/+8
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4080 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Refactor: replace chained finders with an inject. Should handle edge cases ↵Eric Davis2010-09-101-3/+8
| | | | | | better. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4079 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Added a "Member of Role" to the issues filters. #5869Eric Davis2010-09-101-0/+23
| | | | | | | This filter will check an issue's assigned to field for users who have (or don't have) a specific Role(s). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4078 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Added a "Member of Group" to the issues filter. #5869Eric Davis2010-09-101-0/+19
| | | | | | | This filter will check an issue's assigned to field for users in (or not in) specific groups. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4077 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Define Principal#name so all subclasses will have some sort of name when ↵Eric Davis2010-09-101-1/+5
| | | | | | printed. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4076 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Add project names to the Versions in the Gantt export. #5904Eric Davis2010-09-101-0/+4
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4073 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Rewrite the Gantt chart. #6276Eric Davis2010-09-103-1/+82
| | | | | | | | | | | | | | | | | | | | | | | | This version of the Gantt chart supports nested charts. So Projects, Versions, and Issues will be nested underneath their parents correctly. Additional features: * Move all Gantt code to Redmine::Helpers::Gantt class instead of having it in the Gantt class, controller, and view * Recursive and nest sub-projects * Recursive and nest versions * Recursive and nest issues * Draw a line showing when a Project is active and it's progress * Draw a line showing when a Version is active and it's progress * Show a version's % complete * Change the color of Projects, Versions, and Issues if they are late or behind schedule * Added Project#start_date and #due_date * Added Project#completed_percent * Use a mini-gravatar on the Gantt chart * Added tests for the Gantt rendering git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4072 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Refactor: move method to model. (references r4057)Eric Davis2010-09-051-0/+8
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4062 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Removed hard-coded english error message on failed Member creationJean-Baptiste Barth2010-08-091-1/+1
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3929 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Removed useless debug code. #5978Jean-Baptiste Barth2010-08-081-1/+0
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3928 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Added project filter when viewing all issues. #5084Jean-Baptiste Barth2010-08-081-0/+6
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3927 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed: assigned_to and author filters in cross project issues view should be ↵Jean-Baptiste Barth2010-08-041-1/+1
| | | | | | based on user's project visibility. #5760 git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3916 e93f8b46-1217-0410-a6f0-8f06a7374b81