File user profile fields now link to file

This commit is contained in:
Graham Knop 2007-10-04 21:28:44 +00:00
parent 3c5a801a29
commit 1c92b36f5d
2 changed files with 2 additions and 1 deletions

View file

@ -9,6 +9,7 @@
- fix: hover help doesn't appear for matrix fields
- Collaboration systems should always tell browser there is new content
- fix: Good Bad fields not properly localized
- fix: File user profile fields didn't link to the file
7.4.8
- fix: Syndicated Content doesn't display all items with multiple feeds in interleaved mode

View file

@ -143,7 +143,7 @@ sub displayValue {
return '' unless $self->get("value");
my $location = WebGUI::Storage->get($self->session,$self->get("value"));
my $file = shift @{ $location->getFiles };
my $fileValue = sprintf qq|<img src="%s" />&nbsp;%s|, $location->getFileIconUrl($file), $file;
my $fileValue = sprintf qq|<img src="%s" />&nbsp;<a href="%s">%s</a>|, $location->getFileIconUrl($file), $location->getUrl($file), $file;
return $fileValue;
}