From 0498c9f1f1a44af8b41e91bf269db3b2904022bb Mon Sep 17 00:00:00 2001 From: spiderr Date: Mon, 11 Jul 2011 17:04:35 -0400 Subject: clean up assignment on load - use setField to put value into pObject --- LibertyTag.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/LibertyTag.php b/LibertyTag.php index aea2f4e..5599a39 100644 --- a/LibertyTag.php +++ b/LibertyTag.php @@ -717,9 +717,11 @@ function tags_content_edit( $pObject=NULL ) { } } + $pObject->setField( 'tags', implode(", ", $tags) ); + $gBitSmarty->assign( 'loadTags', TRUE ); - $gBitSmarty->assign( 'tagList', !empty( $tags ) ? implode(", ", $tags) : NULL ); - $gBitSmarty->assign( 'tagData', !empty( $tag->mInfo['tags'] ) ? $tag->mInfo['tags'] : NULL ); + $gBitSmarty->assign( 'tagList', $pObject->getField( 'tags' ) ); + $gBitSmarty->assign( 'tagData', $tag->getField( 'tags' ) ); } } } -- cgit v1.3