From c2534d97c51ad9b4adf0c1c73980b74d3aa6d35a Mon Sep 17 00:00:00 2001 From: Daniel Munn Date: Wed, 10 Apr 2013 06:28:23 +0200 Subject: [PATCH] Updating init.rb with correct version [ci skip] --- init.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/init.rb b/init.rb index 68e1a008..54c5dbe2 100644 --- a/init.rb +++ b/init.rb @@ -24,7 +24,7 @@ Redmine::Plugin.register :redmine_dmsf do name "DMSF" author "Vit Jonas / Daniel Munn" description "Document Management System Features" - version "1.4.5 stable" + version "1.4.6 devel" url "https://github.com/danmunn/redmine_dmsf" author_url "https://code.google.com/p/redmine-dmsf/" @@ -72,7 +72,7 @@ Redmine::Plugin.register :redmine_dmsf do unless entry.nil? || entry.deleted title = args[1] ? args[1] : entry.title revision = args[2] ? args[2] : "" - return link_to "#{title}", :controller => "dmsf_files", :action => "show", :id => entry, :download => revision, :only_path => false + return link_to "#{title}", :controller => "dmsf_files", :action => "show", :id => entry, :download => revision, :only_path => false end nil end @@ -85,13 +85,13 @@ Redmine::Plugin.register :redmine_dmsf do macro :dmsff do |obj, args| if args.length < 1 - return link_to l(:link_documents), :controller => "dmsf", :action => "show", :id => @project, :only_path => false + return link_to l(:link_documents), :controller => "dmsf", :action => "show", :id => @project, :only_path => false else entry_id = args[0].strip entry = DmsfFolder.find(entry_id) unless entry.nil? title = args[1] ? args[1] : entry.title - return link_to "#{title}", :controller => "dmsf", :action => "show", :id => entry.project, :folder_id => entry, :only_path => false + return link_to "#{title}", :controller => "dmsf", :action => "show", :id => entry.project, :folder_id => entry, :only_path => false end end nil @@ -109,7 +109,7 @@ Redmine::Plugin.register :redmine_dmsf do entry = DmsfFile.find(entry_id) unless entry.nil? || entry.deleted title = args[1] ? args[1] : entry.title - return link_to "#{title}", :controller => "dmsf_files", :action => "show", :id => entry, :only_path => false + return link_to "#{title}", :controller => "dmsf_files", :action => "show", :id => entry, :only_path => false end nil end