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

           Summary: getSMWPageIDandSort(Titleold) ==
                    getSMWPageIDandSort(TitleNew)
           Product: MediaWiki extensions
           Version: any
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: Normal
         Component: Semantic MediaWiki
        AssignedTo: mar...@semantic-mediawiki.org
        ReportedBy: karima.ra...@bordercloud.com


Hi

I tried to read the data  after to move a page so I use two times the function
getSemanticData.

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

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

BUT $semdata1 and $semdata2 give same triples.

I think...the responsable is the function getSMWPageIDandSort. The old and new
page has the same ID  of getSMWPageIDandSort so getSemanticData give the same
data (same cache).

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