https://bugzilla.wikimedia.org/show_bug.cgi?id=24856

--- Comment #1 from Karima Rafes <karima.ra...@bordercloud.com> 2010-08-18 
19:04:39 UTC ---

Quick and dirty fix ...

$this->m_semdata = array(); //ADD

//save new page
        $newpage = SMWDataValueFactory::newTypeIDValue( '_wpg' );
        $newpage->setValues( $newtitle->getDBkey(), $newtitle->getNamespace(),
$pageid );
        $semdata1 = $this->getSemanticData( $newpage );
        $this->_update($semdata1);

$this->m_semdata = array(); //ADD

        // Save the old page
        $oldpage = SMWDataValueFactory::newTypeIDValue( '_wpg' );
        $oldpage->setValues( $oldtitle->getDBkey(), $oldtitle->getNamespace(),
$redirid );
        $semdata2 = $this->getSemanticData( $oldpage );
        $this->_update( $semdata2); 

bye
karima

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to