Jean-Philippe Lang
576a13e99d
Option to search attachment filenames and description ( #4383 ).
...
git-svn-id: http://svn.redmine.org/redmine/trunk@13856 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-01-09 21:06:09 +00:00
Jean-Philippe Lang
742895183a
Search custom fields and journals with different queries to take advantage of indexes on text columns if present.
...
git-svn-id: http://svn.redmine.org/redmine/trunk@13855 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-01-08 22:04:00 +00:00
Jean-Philippe Lang
fec68fcfc1
Same fix as r13582 for trackers and statuses ( #18769 ).
...
git-svn-id: http://svn.redmine.org/redmine/trunk@13853 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-01-07 22:56:34 +00:00
Jean-Philippe Lang
b1e105abe2
Redirect to the current page when reordering roles ( #18769 ).
...
Patch by Jérôme BATAILLE.
git-svn-id: http://svn.redmine.org/redmine/trunk@13852 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-01-07 22:52:23 +00:00
Jean-Philippe Lang
0eda7765fa
Skip validation if attribute did not change.
...
git-svn-id: http://svn.redmine.org/redmine/trunk@13851 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-01-07 22:51:45 +00:00
Jean-Philippe Lang
8db1cdd6f1
Deprecates Project#set_allowed_parent!.
...
git-svn-id: http://svn.redmine.org/redmine/trunk@13849 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-01-07 22:33:25 +00:00
Jean-Philippe Lang
fd4a911304
Fixed that project copy triggers a 500 error if project validation fails.
...
git-svn-id: http://svn.redmine.org/redmine/trunk@13848 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-01-07 22:29:50 +00:00
Jean-Philippe Lang
5d2eea1489
Cleans up parent project assignment in ProjectsController.
...
git-svn-id: http://svn.redmine.org/redmine/trunk@13847 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-01-07 22:19:57 +00:00
Jean-Philippe Lang
ded15dfc80
Moved Project#hierarchy to NestedSet::Traversing.
...
git-svn-id: http://svn.redmine.org/redmine/trunk@13843 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-01-07 20:37:06 +00:00
Jean-Philippe Lang
1a851318fd
Replaces awesome_nested_set gem with a simple and more robust implementation of nested sets.
...
The concurrency tests added in this commit trigger dead locks and/or nested set inconsistency with awesome_nested_set.
git-svn-id: http://svn.redmine.org/redmine/trunk@13841 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-01-07 20:19:49 +00:00
Toshi MARUYAMA
c23c949d95
remove duplicated :remote key from app/views/messages/show.html.erb
...
Ruby 2.2 shows warning.
git-svn-id: http://svn.redmine.org/redmine/trunk@13836 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-01-04 04:20:49 +00:00
Toshi MARUYAMA
11f2ccd42f
remove duplicated :id key from app/views/timelog/report.html.erb
...
Ruby 2.2 shows warning.
git-svn-id: http://svn.redmine.org/redmine/trunk@13835 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-01-04 04:20:40 +00:00
Jean-Philippe Lang
bfdd9f7c29
The descendant count in the issues delete confirmation message is wrong if issues share some descendants.
...
git-svn-id: http://svn.redmine.org/redmine/trunk@13818 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-12-30 11:24:00 +00:00
Jean-Philippe Lang
1699e37a0c
Preload wiki page content for search results.
...
git-svn-id: http://svn.redmine.org/redmine/trunk@13814 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-12-26 12:23:05 +00:00
Jean-Philippe Lang
a9e53531d3
Fixed duplicate content_url tag introduced in r13806 ( #18707 ).
...
git-svn-id: http://svn.redmine.org/redmine/trunk@13813 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-12-26 12:08:55 +00:00
Jean-Philippe Lang
12890945e5
Allow attachment thumbnails from REST API ( #18707 ).
...
git-svn-id: http://svn.redmine.org/redmine/trunk@13806 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-12-26 11:26:24 +00:00
Jean-Philippe Lang
42e5e6146d
Do not truncate subissue/related issues titles on the issue view ( #18659 ).
...
Patch by Felix Schäfer.
git-svn-id: http://svn.redmine.org/redmine/trunk@13796 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-12-24 12:29:49 +00:00
Jean-Philippe Lang
bfd8113046
Adds p/n access keys for previous/next links ( #18692 ).
...
Patch by Go MAEDA.
git-svn-id: http://svn.redmine.org/redmine/trunk@13794 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-12-24 12:24:00 +00:00
Jean-Philippe Lang
93690ee830
Send the content type as parameter when uploading a file.
...
git-svn-id: http://svn.redmine.org/redmine/trunk@13788 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-12-21 21:07:13 +00:00
Jean-Philippe Lang
64763bece3
Attachment content type not set when uploading attachment ( #18667 ).
...
git-svn-id: http://svn.redmine.org/redmine/trunk@13787 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-12-21 21:02:38 +00:00
Jean-Philippe Lang
c0800b330c
Error when adding user to group where he is already assigned ( #18665 ).
...
git-svn-id: http://svn.redmine.org/redmine/trunk@13785 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-12-21 20:15:24 +00:00
Jean-Philippe Lang
a3d4b63261
Don't overwrite headers that were already set ( #14699 ).
...
git-svn-id: http://svn.redmine.org/redmine/trunk@13784 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-12-21 19:46:33 +00:00
Jean-Philippe Lang
2a6692248b
Replaced "can't" with "cannot" in error messages.
...
git-svn-id: http://svn.redmine.org/redmine/trunk@13781 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-12-21 12:39:48 +00:00
Jean-Philippe Lang
b35ed2ea2b
Use a CustomFieldValue instead of CustomValue.
...
git-svn-id: http://svn.redmine.org/redmine/trunk@13774 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-12-20 13:51:34 +00:00
Jean-Philippe Lang
717f491f50
Cache search result ids for faster search pagination ( #18631 ).
...
git-svn-id: http://svn.redmine.org/redmine/trunk@13770 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-12-20 09:33:02 +00:00
Jean-Philippe Lang
71172e2411
Moved search logic to Redmine::Search ( #18631 ).
...
git-svn-id: http://svn.redmine.org/redmine/trunk@13769 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-12-20 08:10:05 +00:00
Jean-Philippe Lang
15bb695bbb
Use logger.info? ( #18605 ).
...
git-svn-id: http://svn.redmine.org/redmine/trunk@13766 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-12-14 21:53:38 +00:00
Jean-Philippe Lang
8ac68457f5
User detail : show user login to admins ( #17354 ).
...
Patch by Jérôme BATAILLE.
git-svn-id: http://svn.redmine.org/redmine/trunk@13763 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-12-14 20:47:31 +00:00
Jean-Philippe Lang
b55d248597
Removed debug stuff.
...
git-svn-id: http://svn.redmine.org/redmine/trunk@13755 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-12-13 18:40:55 +00:00
Jean-Philippe Lang
6ad8ff4e13
Don't use #downcase on search tokens, let the database handle it ( #18537 ).
...
git-svn-id: http://svn.redmine.org/redmine/trunk@13754 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-12-13 18:36:35 +00:00
Jean-Philippe Lang
c27e917843
HTML improvements on project landing page ( #18565 ).
...
Patch by Tobias Fischer.
git-svn-id: http://svn.redmine.org/redmine/trunk@13753 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-12-13 18:24:10 +00:00
Jean-Philippe Lang
d17b8dcc97
Merged datepicker.js into application.js.
...
git-svn-id: http://svn.redmine.org/redmine/trunk@13752 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-12-13 18:05:05 +00:00
Jean-Philippe Lang
f731545c61
Use a simple count query.
...
git-svn-id: http://svn.redmine.org/redmine/trunk@13750 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-12-13 16:55:28 +00:00
Jean-Philippe Lang
c886ffe200
Don't show roles without issue add/edit permission in workflow setup ( #15988 ).
...
git-svn-id: http://svn.redmine.org/redmine/trunk@13748 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-12-13 14:47:16 +00:00
Jean-Philippe Lang
453803c68f
Don't consider roles without issue add/edit permissions for determining fields permissions ( #15988 ).
...
git-svn-id: http://svn.redmine.org/redmine/trunk@13747 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-12-13 14:31:58 +00:00
Jean-Philippe Lang
07b44a4662
Droped legacy behaviour that allows a user to edit a few attributes of an issue without the edit_issues permission if a status transition is allowed ( #15988 ).
...
Now that we can control permission on each field, this behaviour is no longer needed. The edit_issues permission is now required, which is consistent with the current requirements for bulk edition.
git-svn-id: http://svn.redmine.org/redmine/trunk@13746 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-12-13 14:01:56 +00:00
Jean-Philippe Lang
b8d2d35e95
Use projects association.
...
git-svn-id: http://svn.redmine.org/redmine/trunk@13744 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-12-13 11:09:42 +00:00
Jean-Philippe Lang
47f331a63b
Removed unused helper.
...
git-svn-id: http://svn.redmine.org/redmine/trunk@13741 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-12-12 21:39:43 +00:00
Jean-Philippe Lang
996b39cde1
Removed unused method.
...
git-svn-id: http://svn.redmine.org/redmine/trunk@13740 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-12-12 21:33:28 +00:00
Jean-Philippe Lang
2fe806a4a4
Rewrites search engine to properly paginate results ( #18631 ).
...
Instead of counting and retrieving results based on their timestamps, we now load all result ids then load the appropriate results by their ids. This also brings a 2x performance improvement as we search tokens in one of the 2 queries only.
git-svn-id: http://svn.redmine.org/redmine/trunk@13739 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-12-12 20:49:31 +00:00
Toshi MARUYAMA
963719042a
ignore X-Autoreply mails ( #15999 , #13425 )
...
Contributed by Karel Pičman.
git-svn-id: http://svn.redmine.org/redmine/trunk@13738 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-12-12 04:58:31 +00:00
Jean-Philippe Lang
d4ebbe5ba8
Adds some helpers tests.
...
git-svn-id: http://svn.redmine.org/redmine/trunk@13735 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-12-11 17:58:08 +00:00
Jean-Philippe Lang
fcf9cf7bb1
Misc tests.
...
git-svn-id: http://svn.redmine.org/redmine/trunk@13734 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-12-08 17:31:48 +00:00
Jean-Philippe Lang
95810125bf
Don't create a journal when creating an issue with attachments.
...
git-svn-id: http://svn.redmine.org/redmine/trunk@13733 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-12-08 17:30:47 +00:00
Jean-Philippe Lang
2462a8581d
Don't create a journal when creating an issue.
...
git-svn-id: http://svn.redmine.org/redmine/trunk@13732 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-12-08 17:18:28 +00:00
Jean-Philippe Lang
e09f48e459
Skip some validations if attribute did not change.
...
git-svn-id: http://svn.redmine.org/redmine/trunk@13723 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-12-06 11:23:05 +00:00
Jean-Philippe Lang
5324fd04b1
Specify the order for finding a setting.
...
git-svn-id: http://svn.redmine.org/redmine/trunk@13721 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-12-05 15:03:29 +00:00
Jean-Philippe Lang
3b6ba58b11
Skip uniqueness validation when updating a setting without changing its name.
...
git-svn-id: http://svn.redmine.org/redmine/trunk@13720 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-12-05 15:02:29 +00:00
Jean-Philippe Lang
ca71cf3800
Adds methods for loading and adding settings.
...
git-svn-id: http://svn.redmine.org/redmine/trunk@13719 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-12-05 15:00:27 +00:00
Jean-Philippe Lang
9dae5771bc
Un-inline statement.
...
git-svn-id: http://svn.redmine.org/redmine/trunk@13717 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-12-05 12:38:34 +00:00