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

       Web browser: ---
             Bug #: 29219
           Summary: SMWSQLStore2::getPropertyValues() for a specific page
                    requires that property name has underscores
           Product: MediaWiki extensions
           Version: any
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: major
          Priority: Unprioritized
         Component: Semantic MediaWiki
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]
    Classification: Unclassified


When SMWSQLStore2::getPropertyValues() is called for a specific page (i.e.,
with a non-null $subject), the $property argument has to have been created with
a property name that has underscores instead of spaces, for the call to work; I
assume that's a bug.

This can be fixed by adding the following line to the beginning of
SMWSQLStore2::getSMWPageIDandSort():

$title = str_replace( ' ', '_', $title );

...but maybe there are better ways to solve it.

-- 
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
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to