Fix a typo in the story link back to the archive, to limit display to only 1 keyword.

This commit is contained in:
Colin Kuskie 2009-07-16 03:10:27 +00:00
parent f4f55b4a7d
commit 1c40934876
3 changed files with 5 additions and 4 deletions

View file

@ -19,6 +19,7 @@
- fixed #10646: Asset History not paginated - fixed #10646: Asset History not paginated
- fixed #10645: Asset History: search results not sorted as expected - fixed #10645: Asset History: search results not sorted as expected
- fixed #10648: Story Topic: Photos don't display - fixed #10648: Story Topic: Photos don't display
- fixed #10649: Story Manager Keywords not working correctly
7.7.14 7.7.14
- fixed #10606: shelf selector - fixed #10606: shelf selector

View file

@ -894,7 +894,7 @@ sub viewTemplateVariables {
foreach my $keyword (@{ $keywords }) { foreach my $keyword (@{ $keywords }) {
push @{ $var->{keyword_loop} }, { push @{ $var->{keyword_loop} }, {
keyword => $keyword, keyword => $keyword,
url => $archive->getUrl("func=view;keywords=".$session->url->escape($keyword)), url => $archive->getUrl("func=view;keyword=".$session->url->escape($keyword)),
}; };
} }
$var->{updatedTime} = $self->formatDuration(); $var->{updatedTime} = $self->formatDuration();

View file

@ -332,9 +332,9 @@ is($viewVariables->{headline}, 'WebGUI, Web Done Right', '... headline is okay')
cmp_bag( cmp_bag(
$viewVariables->{keyword_loop}, $viewVariables->{keyword_loop},
[ [
{ keyword => "foxtrot", url => '/home/test-archive?func=view;keywords=foxtrot', }, { keyword => "foxtrot", url => '/home/test-archive?func=view;keyword=foxtrot', },
{ keyword => "tango", url => '/home/test-archive?func=view;keywords=tango', }, { keyword => "tango", url => '/home/test-archive?func=view;keyword=tango', },
{ keyword => "whiskey", url => '/home/test-archive?func=view;keywords=whiskey', }, { keyword => "whiskey", url => '/home/test-archive?func=view;keyword=whiskey', },
], ],
'viewTemplateVariables: keywords_loop is okay' 'viewTemplateVariables: keywords_loop is okay'
); );