evoteam team mailing list archive
-
evoteam team
-
Mailing list archive
-
Message #00014
[Bug 415436] Re: Can't edit tags or extracats from a post without touching some otther field of the post
** Changed in: b2evolution
Status: New => Triaged
--
Can't edit tags or extracats from a post without touching some otther field of the post
https://bugs.launchpad.net/bugs/415436
You received this bug notification because you are a member of Evoteam,
which is subscribed to b2evolution.
Status in b2evolution: Triaged
Bug description:
Hi. I was trying to add some categories to old posts when I faced a problem: the new tags was not really saved to DB.
After some research, I found the problem: The problem lies on function dbupdate from _item.class.php. Look:
if( $result = parent::dbupdate( $auto_track_modification ) )
{ // We could update the item object..
// Let's handle the extracats:
$this->insert_update_extracats( 'update' );
// Let's handle the tags:
$this->insert_update_tags( 'update' );
$this->delete_prerendered_content();
$DB->commit();
$Plugins->trigger_event( 'AfterItemUpdate', $params = array( 'Item' => & $this, 'dbchanges' => $dbchanges ) );
}
else
{
$DB->commit();
}
extracats and tags will be touched only if the parent of Item (a ItemLight) was touched. If I just edit a post to edit tags or add some extracat, It won't be updated, cause this operation don't really changed anything on ItemLight. If I alter the post title at the same time, by example, the new tags or extracats get inserted ok. Happens on b2evolution CVS HEAD and whissip.
References