From 08f6bd8b58b0257a43f67a5349c0f88e0af818f5 Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Sun, 11 Oct 2009 19:03:55 -0700 Subject: [PATCH] Fix description field of the Story RSS feed. Fixes bug #11112 --- docs/changelog/7.x.x.txt | 1 + lib/WebGUI/Asset/Story.pm | 2 +- t/Asset/Story.t | 3 ++- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/changelog/7.x.x.txt b/docs/changelog/7.x.x.txt index babb82fe0..235631b7e 100644 --- a/docs/changelog/7.x.x.txt +++ b/docs/changelog/7.x.x.txt @@ -9,6 +9,7 @@ - fixed #11080: Asset Manage Crumb Trail flyout menu - fixed #10874: EMS Schedule displaying incorrectly - fixed #10956: Account, Profile system bad rendering with lots of + - fixed #11112: story archive RSS feed 7.8.1 - mark $session->datetime->time as deprecated and remove its use from core code diff --git a/lib/WebGUI/Asset/Story.pm b/lib/WebGUI/Asset/Story.pm index 146f5ae2d..91a3fbee9 100644 --- a/lib/WebGUI/Asset/Story.pm +++ b/lib/WebGUI/Asset/Story.pm @@ -537,7 +537,7 @@ sub getRssData { my $self = shift; my $data = { title => $self->get('headline') || $self->getTitle, - description => $self->get('subtitle'), + description => $self->get('story'), 'link' => $self->getUrl, author => $self->get('byline'), date => $self->get('lastModified'), diff --git a/t/Asset/Story.t b/t/Asset/Story.t index 92564f745..6cfecce5a 100644 --- a/t/Asset/Story.t +++ b/t/Asset/Story.t @@ -122,6 +122,7 @@ $story = $archive->addChild({ title => 'Story 1', subtitle => 'The story of a CMS', byline => 'JT Smith', + story => 'WebGUI was originally called Web Done Right.', }); isa_ok($story, 'WebGUI::Asset::Story', 'Created a Story asset'); @@ -276,7 +277,7 @@ cmp_deeply( $story->getRssData, { title => 'Story 1', - description => 'The story of a CMS', + description => 'WebGUI was originally called Web Done Right.', 'link' => re('story-1$'), author => 'JT Smith', date => $story->get('lastModified'),