Fixed a bug with RSS feed generation and attachments.

This commit is contained in:
JT Smith 2007-01-17 18:24:15 +00:00
parent d5b79ae217
commit 2c7f49be9a
5 changed files with 5 additions and 20 deletions

View file

@ -17,6 +17,9 @@
handling dynamic item plugins. (Martin Kamerbeek / Oqapi)
- fix: Using double quote in Project Manager task name breaks javascript
(perlDreamer Consulting LLC)
- Fixed a bug in the 7.2.3-7.3.0 upgrade script related to calendar
migration.
- Fixed a bug with RSS feed generation and attachments.
7.3.4
- fix: SQLForm - cannot add new asset (Martin Kamerbeek / Oqapi)

View file

@ -28,7 +28,7 @@ Contributing Developers..............Lucas Bartholemy
Chris Jackson
Roy Johnson / Plain Black
Koen de Jonge / ProcoliX
Martin Kamerbeek / ProcoliX
Martin Kamerbeek / Oqapi
Christian Kocourek
John W. Krahn
Len Kranendonk

View file

@ -220,6 +220,7 @@ sub migrateCalendars {
for my $asset (@{$calendars})
{
next unless defined $asset;
my $properties = {%{$asset->get}};
$properties->{defaultDate} = delete $properties->{defaultMonth};
#warn "Found calendar ".$properties->{title};

View file

@ -708,24 +708,6 @@ SQL
return @posts;
}
#-------------------------------------------------------------------
sub getRssItemsAttachments {
my $self = shift;
my $post = shift;
if ($post->get('storageId')) {
my $storage = $post->getStorageLocation;
my @attachments = map {
{
'attachment.url' => $storage->getUrl($_),
'attachment.path' => $storage->getPath($_),
'attachment.length' => $storage->getFileSize($_)
}
} @{$storage->getFiles};
return \@attachments;
}
return [];
}
#-------------------------------------------------------------------
sub getEditTabs {
my $self = shift;

View file

@ -47,7 +47,6 @@ This package provides miscellaneous but useful utilities to the WebGUI programme
$string = makeCommaSafe($string);
$string = makeTabSafe($string);
$integer = randint($low,$high);
randomizeArray(\@array);
$hashRef = randomizeHash(\%hash);
%hash = sortHash(%hash);
%hash = sortHashDescending(%hash);