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)
Description
Should be
/projects/test-project/wiki/Wiki?version=12but 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
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
Committed in 85c3d38d240fec3dd19243c9221952358993a6e0, thanks!
- Status changed from Open to Closed