ChiliProject is not maintained anymore. Please be advised that there will be no more updates.

We do not recommend that you setup new ChiliProject instances and we urge all existing users to migrate their data to a maintained system, e.g. Redmine. We will provide a migration script later. In the meantime, you can use the instructions by Christian Daehn.

Wong URL for WIKI activity entries in 2.0.0rc2 (Bug #469)


Added by Artem Naluzhnyy at 2011-06-11 09:58 pm. Updated at 2011-06-16 06:57 pm.


Status:Closed Start date:2011-06-11
Priority:Normal Due date:
Assignee:- % Done:

0%

Category:Journals / History
Target version:2.0.0
Remote issue URL: Affected version:unstable

Description

Should be

/projects/test-project/wiki/Wiki?version=12
but now it is
/wiki/113/Wiki?version=12

Reverting event_url helps:

--- app/models/wiki_content.rb.orig        2011-06-10 23:36:19.000000000 +0300
+++ app/models/wiki_content.rb 2011-06-12 00:42:56.000000000 +0300
@@ -25,7 +25,7 @@

   acts_as_journalized :event_type => 'wiki-page',
     :event_title => Proc.new {|o| "#{l(:label_wiki_edit)}: #{o.page.title} (##{o.version})"},
-    :event_url => Proc.new {|o| {:controller => 'wiki', :id => o.page.wiki.project_id, :page => o.page.title, :version => o.version}},
+    :event_url => Proc.new {|o| {:controller => 'wiki', :action => 'show', :id => o.page.title, :project_id => o.page.wiki.project, :version => o.version}},
     :activity_type => 'wiki_edits',
     :activity_permission => :view_wiki_edits,
     :activity_find_options => { :include => { :page => { :wiki => :project } } }


Associated revisions

Revision 85c3d38d
Added by Felix Schäfer at 2011-06-16 08:56 pm

Fix the wiki links in the activity view. #469

Contributed by Artem Naluzhnyy.

History

Updated by Felix Schäfer at 2011-06-16 06:57 pm

  • Status changed from Open to Closed

Also available in: Atom PDF