From cecfff40fe787a48f10c41f8ee93714ef1597305 Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Wed, 8 Apr 2009 16:41:51 +0000 Subject: [PATCH] Update Story to use awesome new Keywords --- lib/WebGUI/Asset/Story.pm | 2 +- t/Asset/Story.t | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/WebGUI/Asset/Story.pm b/lib/WebGUI/Asset/Story.pm index 03859fd8a..e3fbaa26a 100644 --- a/lib/WebGUI/Asset/Story.pm +++ b/lib/WebGUI/Asset/Story.pm @@ -335,7 +335,7 @@ sub getEditForm { name => 'location', value => $form->get('location') || $self->get('location') } ), - keywordsForm => WebGUI::Form::text($session, { + keywordsForm => WebGUI::Form::keywords($session, { name => 'keywords', value => $form->get('keywords') || WebGUI::Keyword->new($session)->getKeywordsForAsset({ asset => $self }) } ), diff --git a/t/Asset/Story.t b/t/Asset/Story.t index 8257333bc..fd5d96891 100644 --- a/t/Asset/Story.t +++ b/t/Asset/Story.t @@ -46,7 +46,7 @@ my $topic = $defaultNode->addChild({ title => 'Test Topic', #1234567890123456789012 assetId => 'TestStoryTopicAsset123', - keywords => 'tango yankee', + keywords => 'tango,yankee', }); my $archiveTag = WebGUI::VersionTag->getWorking($session); $archiveTag->commit; @@ -211,7 +211,7 @@ $story->topic(''); $story->update({ highlights => "one\ntwo\nthree", - keywords => "foxtrot tango whiskey", + keywords => "foxtrot,tango,whiskey", }); is($story->get('highlights'), "one\ntwo\nthree", 'highlights set correctly for template var check');