Update Story to use awesome new Keywords
This commit is contained in:
parent
4c1307e3d0
commit
cecfff40fe
2 changed files with 3 additions and 3 deletions
|
|
@ -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 })
|
||||
} ),
|
||||
|
|
|
|||
|
|
@ -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');
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue