Bug #2398
No create button for Subversion in Redmne 3.x
100%
Description
“Create new repository” button is missing if Subversion is selected, everything is ok if git is selected.
System info:
Environment:
Redmine version 3.0.2.stable.14236
Ruby version 2.1.5-p273 (2014-11-13) [x86_64-linux-gnu]
Rails version 4.2.1
Environment production
Database adapter Mysql2
SCM:
Subversion 1.8.10
Git 2.1.4
Redmine plugins:
redmine_scm 0.5.1
scm.yml:
production:
deny_delete: false
auto_create: false
force_repository: true
max_repos: 0
only_creator: false
allow_add_local: true
allow_pickup: true
svn:
path: /usr/share/svn-repos
svnadmin: /usr/bin/svnadmin
url: <..>
git:
path: /usr/share/git-repos
git: /usr/bin/git
options: --bare
url: <..>
update_server_info: true
git_ext: true
Associated revisions
Refactor external URL and Create buttin code (#2398)
History
#1 Updated by Takashi Okamoto over 8 years ago
I fixed here https://github.com/alminium/redmine_scm/tree/redmine-3.2.x.
Andy, feel free to merge above fix.
regards,
#2 Updated by Lukas Pirl over 8 years ago
Similar to Takashi Okamoto, I replaced the dirty hack with an updated dirty hack to make it work on Redmine 3.0.3.
--- lib/scm_repositories_helper_patch.rb (revision 142)
+++ lib/scm_repositories_helper_patch.rb (working copy)
@@ -57,7 +58,8 @@
else # Rails 3.1 and above
add = submit_tag(l(:button_create_new_repository), :onclick => "$('#repository_operation').val('add');")
end
- svntags.sub!('<br />', ' ' + add + '<br />')
+ svntags.sub!('<label for="repository_login">',
+ ' ' + add + '<br /><br /><label for="repository_login">')
svntags << hidden_field_tag(:operation, '', :id => 'repository_operation')
unless request.post?
path = SubversionCreator.access_root_url(SubversionCreator.default_path(@project.identifier), repository)
Also, feel free to merge this (as in: I'd be delighted to see this fixed ).
#3 Updated by Andriy Lesyuk over 8 years ago
- Status changed from New to Open
- Assignee set to Andriy Lesyuk
- Target version set to 0.5.1
#4 Updated by Andriy Lesyuk about 8 years ago
- Status changed from Open to Closed
- % Done changed from 0 to 100