Jean-Philippe Lang
6ca3e4f75f
Use strong params for CustomFieldEnumeration.
...
git-svn-id: http://svn.redmine.org/redmine/trunk@16603 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-06-03 08:43:04 +00:00
Jean-Philippe Lang
b923a54b2d
Permit enumeration params.
...
git-svn-id: http://svn.redmine.org/redmine/trunk@16602 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-06-03 08:36:39 +00:00
Jean-Philippe Lang
8e2983dd70
Don't check that param is a Hash.
...
git-svn-id: http://svn.redmine.org/redmine/trunk@16601 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-06-03 08:30:32 +00:00
Jean-Philippe Lang
99a714e39b
Prevent clash with Rails 5.1 Mailer class.
...
git-svn-id: http://svn.redmine.org/redmine/trunk@16600 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-06-03 08:20:20 +00:00
Jean-Philippe Lang
1870a2e4fb
Make sure that the journal is not created if issue is saved.
...
git-svn-id: http://svn.redmine.org/redmine/trunk@16599 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-06-03 08:10:20 +00:00
Jean-Philippe Lang
58dc4455cb
AR uniq deprecated in Rails 5.
...
git-svn-id: http://svn.redmine.org/redmine/trunk@16598 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-06-03 08:07:47 +00:00
Jean-Philippe Lang
44c748f968
Use regular instance methods instead of association extensions.
...
Rails 5.1 seems to mess things up in this particular case (role.workflow_rules.copy calls the extension declare in Tracker model).
git-svn-id: http://svn.redmine.org/redmine/trunk@16597 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-06-03 08:04:13 +00:00
Jean-Philippe Lang
f6defca16d
redirect_to :back deprecated in Rails 5.
...
git-svn-id: http://svn.redmine.org/redmine/trunk@16596 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-06-03 07:51:48 +00:00
Jean-Philippe Lang
1adeaa7aa7
Use query parameters intead of params in CSV link.
...
git-svn-id: http://svn.redmine.org/redmine/trunk@16594 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-06-01 21:28:12 +00:00
Jean-Philippe Lang
42d3f7e504
Use JSON instead of XML for reposman.rb.
...
git-svn-id: http://svn.redmine.org/redmine/trunk@16591 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-06-01 20:09:08 +00:00
Jean-Philippe Lang
dd92a53b14
Use #safe_attributes= instead.
...
git-svn-id: http://svn.redmine.org/redmine/trunk@16590 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-06-01 19:56:13 +00:00
Jean-Philippe Lang
c6bf632945
Use #skip_after_action instead of #skip_after_filter.
...
git-svn-id: http://svn.redmine.org/redmine/trunk@16589 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-06-01 18:29:18 +00:00
Jean-Philippe Lang
da4f9ce34d
Don't call #head with a hash.
...
git-svn-id: http://svn.redmine.org/redmine/trunk@16588 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-06-01 18:28:18 +00:00
Toshi MARUYAMA
1493bf03c6
use only one if with two conditions in issue show instead of two ifs (if in if) ( #25731 )
...
Contributed by Marius BALTEANU.
git-svn-id: http://svn.redmine.org/redmine/trunk@16581 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-05-30 12:04:53 +00:00
Jean-Philippe Lang
d9418864b6
Show the same trackers and statuses on time entry queries ( #5385 ).
...
git-svn-id: http://svn.redmine.org/redmine/trunk@16577 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-05-27 09:19:14 +00:00
Jean-Philippe Lang
d6b0fca902
Statuses of subprojects should be showed too ( #5385 ).
...
git-svn-id: http://svn.redmine.org/redmine/trunk@16576 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-05-27 09:13:35 +00:00
Jean-Philippe Lang
ba37a2c476
Show statuses of project trackers only ( #5385 ).
...
Patch by Marius BALTEANU.
git-svn-id: http://svn.redmine.org/redmine/trunk@16575 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-05-27 09:12:42 +00:00
Jean-Philippe Lang
335a16e4fd
Cusotom field label should not be associated to the first input ( #25760 ).
...
git-svn-id: http://svn.redmine.org/redmine/trunk@16574 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-05-27 08:49:08 +00:00
Jean-Philippe Lang
9439cae70f
Send journal notification after commit ( #25794 ).
...
git-svn-id: http://svn.redmine.org/redmine/trunk@16573 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-05-27 08:44:24 +00:00
Jean-Philippe Lang
ccb9d4ada9
Rescue any EncodingError exceptions ( #25861 ).
...
git-svn-id: http://svn.redmine.org/redmine/trunk@16572 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-05-27 08:40:39 +00:00
Jean-Philippe Lang
86fa4e66c9
Check tracker permissions when copying an issue ( #25791 ).
...
git-svn-id: http://svn.redmine.org/redmine/trunk@16569 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-05-27 08:34:41 +00:00
Jean-Philippe Lang
0f09f161f6
Send reminders about visible issues only ( #25713 ).
...
Patch by Felix Schäfer.
git-svn-id: http://svn.redmine.org/redmine/trunk@16557 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-05-13 09:38:05 +00:00
Jean-Philippe Lang
6543d73a64
Optimize gantt charts for mobile screens ( #25745 ).
...
Patch by Felix Gliesche.
git-svn-id: http://svn.redmine.org/redmine/trunk@16556 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-05-13 09:35:32 +00:00
Jean-Philippe Lang
0bf1e4ee2d
Render register page on all non-POST requests to account#register ( #25653 ).
...
Patch by Holger Just.
git-svn-id: http://svn.redmine.org/redmine/trunk@16555 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-05-13 09:32:53 +00:00
Jean-Philippe Lang
fee959675d
Only perform login action on explicit POST ( #25653 ).
...
Patch by Holger Just.
git-svn-id: http://svn.redmine.org/redmine/trunk@16554 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-05-13 09:32:09 +00:00
Jean-Philippe Lang
26dd3e8b43
Show no data message when searching only.
...
git-svn-id: http://svn.redmine.org/redmine/trunk@16552 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-05-13 09:26:43 +00:00
Jean-Philippe Lang
8dad27236b
Preserve jump param when searching for projects.
...
git-svn-id: http://svn.redmine.org/redmine/trunk@16551 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-05-13 09:23:44 +00:00
Jean-Philippe Lang
23dc616850
Moves project quick search to a dedicated action.
...
git-svn-id: http://svn.redmine.org/redmine/trunk@16550 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-05-13 09:20:29 +00:00
Toshi MARUYAMA
f2b891d912
remove trailing white-space from app/models/time_entry_query.rb
...
git-svn-id: http://svn.redmine.org/redmine/trunk@16545 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-04-25 17:44:08 +00:00
Toshi MARUYAMA
e45e29eb96
remove trailing white-space from app/models/user.rb
...
git-svn-id: http://svn.redmine.org/redmine/trunk@16544 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-04-25 17:04:41 +00:00
Jean-Philippe Lang
35bb707b91
Preview when editing journal notes broken by r15621.
...
git-svn-id: http://svn.redmine.org/redmine/trunk@16542 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-04-13 12:15:21 +00:00
Jean-Philippe Lang
4d5ddb0072
Prevent deadlocks by only locking the exact records we need to have locked ( #25590 ).
...
Patch by Jens Kraemer.
git-svn-id: http://svn.redmine.org/redmine/trunk@16541 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-04-13 12:10:03 +00:00
Jean-Philippe Lang
3bfc5e42da
For 3 comments or more, show reply link at top of comments as well ( #24089 ).
...
Patch by Jan Schulz-Hofen.
git-svn-id: http://svn.redmine.org/redmine/trunk@16539 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-04-09 09:39:59 +00:00
Jean-Philippe Lang
c2c526c822
Introduce setting to hide optional user custom fields on registration form ( #24089 ).
...
Patch by Jan Schulz-Hofen.
git-svn-id: http://svn.redmine.org/redmine/trunk@16537 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-04-09 09:34:24 +00:00
Jean-Philippe Lang
2f77bfde91
Option to set a default assignee on each project ( #482 ).
...
Patch by Felix Schäfer.
git-svn-id: http://svn.redmine.org/redmine/trunk@16525 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-04-08 08:02:06 +00:00
Jean-Philippe Lang
9506ff1f40
Fixed that watchers list is not updated when changing project on the new issue form ( #17762 ).
...
git-svn-id: http://svn.redmine.org/redmine/trunk@16511 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-04-06 19:57:00 +00:00
Jean-Philippe Lang
1cd985dd6b
Option to copy watchers when copying issues ( #10460 ).
...
git-svn-id: http://svn.redmine.org/redmine/trunk@16509 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-04-06 17:34:45 +00:00
Jean-Philippe Lang
49a28df30d
Set autocomplete to off on project quick search ( #23310 ).
...
Patch by Marius BALTEANU.
git-svn-id: http://svn.redmine.org/redmine/trunk@16506 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-04-06 17:13:45 +00:00
Jean-Philippe Lang
dd37b8cfb6
Fixed that related to "no open issues" filter shows all issues ( #25478 ).
...
Patch by Kevin Fischer.
git-svn-id: http://svn.redmine.org/redmine/trunk@16504 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-04-06 16:57:44 +00:00
Jean-Philippe Lang
fc73a90740
Always set spent_hours instance variables to a Float in Issue instances ( #25526 ).
...
Patch by Holger Just.
git-svn-id: http://svn.redmine.org/redmine/trunk@16491 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-04-05 16:09:58 +00:00
Jean-Philippe Lang
353914768e
Code cleanup.
...
git-svn-id: http://svn.redmine.org/redmine/trunk@16490 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-04-05 15:59:43 +00:00
Jean-Philippe Lang
3a4ce13b42
Use 2 queries that use an index.
...
git-svn-id: http://svn.redmine.org/redmine/trunk@16483 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-04-04 18:03:49 +00:00
Jean-Philippe Lang
fbde611f3f
Use #to_sql to generate the subquery.
...
git-svn-id: http://svn.redmine.org/redmine/trunk@16482 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-04-04 18:00:20 +00:00
Jean-Philippe Lang
70b0bc5168
Adds a scope to left join the issue.
...
git-svn-id: http://svn.redmine.org/redmine/trunk@16481 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-04-04 17:54:39 +00:00
Jean-Philippe Lang
d8dec34ece
Don't compare LOWER() with #downcase.
...
git-svn-id: http://svn.redmine.org/redmine/trunk@16480 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-04-04 17:53:48 +00:00
Jean-Philippe Lang
f604fe9460
SQL Cleanup.
...
git-svn-id: http://svn.redmine.org/redmine/trunk@16479 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-04-04 17:52:24 +00:00
Jean-Philippe Lang
8fe94c30fe
Adds a link back to the issue list that we are coming from.
...
git-svn-id: http://svn.redmine.org/redmine/trunk@16478 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-04-04 17:49:40 +00:00
Jean-Philippe Lang
7b125bc292
Better handling of update failures when bulk editing time entries.
...
git-svn-id: http://svn.redmine.org/redmine/trunk@16477 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-04-04 17:22:08 +00:00
Jean-Philippe Lang
41cb7a3a55
Let the issue list be grouped by private flag.
...
git-svn-id: http://svn.redmine.org/redmine/trunk@16476 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-04-04 17:19:55 +00:00
Jean-Philippe Lang
88a3a351d0
Don't hardcode the groups on My page.
...
git-svn-id: http://svn.redmine.org/redmine/trunk@16475 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-04-04 17:17:47 +00:00