Tracker: Bugs

5 "view all files" link does nothing - ID: 2163921
Last Update: Settings changed ( sits )

In 1.9.5, the "view all files" link on the TopicText page added a parameter fview=-1. In 1.9.6, this parameter is not there. If the switch to "view all files" mode is supposed to be achieved some other way, it does not seem to work for me. When I click this link:
- the view does not change (only one file is in view)
- the link does not go away, as it did in previous releases

Note that if I add 'fview=-1' to the URL manually, it seems to do the right thing.


David Carson ( dccarson ) - 2008-10-13 08:55:31 PDT

5

Closed

Fixed

Nobody/Anonymous

None

None

Public


Comments ( 3 )

Date: 2008-10-19 20:07:34 PDT
Sender: sitsProject Admin

Yep - you are right. I've fixed this with the current codebase, basically
update line 180 in lib/Codestriker/Action/ViewTopic.pm from

$vars->{'display_all_files_url'} =
$url_builder->view_url(topicid => $topicid, projectid => $projectid,
mode => $mode);

to

$vars->{'display_all_files_url'} =
$url_builder->view_url(topicid => $topicid, projectid => $projectid,
mode => $mode, fview => -1);

Thanks for your report.



Date: 2008-10-16 09:08:22 PDT
Sender: nobody

Perhaps it is working as you described below -- using the setting for
$default_file_to_view when no parm is specified. This does not seem
correct. We set our value to 0, because we prefer, by default, to view
only the first file. However, when the user clicks on "view all files" he
expects this to _change_ to all files. How would the user achieve the "all
files" view in 1.9.6 if $default_file_to_view is set to 0?

Here is the config language:
# When displaying a topic, if this value is -1, then all files in the
# topic are displayed in the one page (default old Codestriker
# behaviour). If the value is 0, then only the first file is shown,
# with links to display the other files. This is useful for those
# deployments that review a large amount of code.
$default_file_to_view = 0;




Date: 2008-10-15 21:42:31 PDT
Sender: sitsProject Admin

Strange - if the parameter is missing, it should default as if it is -1 (or
what is set to $default_file_to_view in your codestriker.conf file).

Things certainly work fine for 1.9.7-rc1, so perhaps this has been fixed by
accident.



Attached File

No Files Currently Attached

Changes ( 4 )

Field Old Value Date By
resolution_id Works For Me 2008-10-19 20:07:43 PDT sits
status_id Open 2008-10-15 21:42:36 PDT sits
resolution_id None 2008-10-15 21:42:36 PDT sits
close_date - 2008-10-15 21:42:36 PDT sits