[pLog-svn] r6616 - plog/branches/lifetype-1.2/class/action/admin
jondaley at devel.lifetype.net
jondaley at devel.lifetype.net
Sat Jun 21 12:10:45 EDT 2008
Author: jondaley
Date: 2008-06-21 12:10:45 -0400 (Sat, 21 Jun 2008)
New Revision: 6616
Modified:
plog/branches/lifetype-1.2/class/action/admin/adminupdatepostaction.class.php
Log:
reuse existing function. custom fields need some more work, but we can postpone that until 2.0.
Modified: plog/branches/lifetype-1.2/class/action/admin/adminupdatepostaction.class.php
===================================================================
--- plog/branches/lifetype-1.2/class/action/admin/adminupdatepostaction.class.php 2008-06-21 16:09:44 UTC (rev 6615)
+++ plog/branches/lifetype-1.2/class/action/admin/adminupdatepostaction.class.php 2008-06-21 16:10:45 UTC (rev 6616)
@@ -92,16 +92,7 @@
$post->setModificationDate( $modifDate );
// prepare the custom fields
- $fields = Array();
- if( is_array($this->_customFields)) {
- foreach( $this->_customFields as $fieldId => $fieldValue ) {
- // 3 of those parameters are not really need when creating a new object... it's enough that
- // we know the field definition id.
- $customField = new CustomFieldValue( $fieldId, $fieldValue, "", -1, "", $post->getId(), $this->_blogInfo->getId(), -1);
- array_push( $fields, $customField );
- }
- $post->setFields( $fields );
- }
+ $post->setFields($this->_getArticleCustomFields());
// fire the pre event
$this->notifyEvent( EVENT_PRE_POST_UPDATE, Array( "article" => &$post ));
More information about the pLog-svn
mailing list