Yaron Koren has uploaded a new change for review. https://gerrit.wikimedia.org/r/85851
Change subject: Fix for parsing inverse queries in template ...................................................................... Fix for parsing inverse queries in template Change-Id: Id33aab754d4a14986da54ca4ceceb18625680f46 --- M includes/SF_TemplateField.php 1 file changed, 7 insertions(+), 0 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/SemanticForms refs/changes/51/85851/1 diff --git a/includes/SF_TemplateField.php b/includes/SF_TemplateField.php index 15ff8ac..b399d59 100644 --- a/includes/SF_TemplateField.php +++ b/includes/SF_TemplateField.php @@ -65,6 +65,13 @@ } function setTypeAndPossibleValues() { + // The presence of "-" at the beginning of a property name + // (which happens if SF tries to parse an inverse query) + // leads to an error in SMW - just exit if that's the case. + if ( strpos( $this->mSemanticProperty, '-' ) === 0 ) { + return; + } + $proptitle = Title::makeTitleSafe( SMW_NS_PROPERTY, $this->mSemanticProperty ); if ( $proptitle === null ) { return; -- To view, visit https://gerrit.wikimedia.org/r/85851 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Id33aab754d4a14986da54ca4ceceb18625680f46 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/SemanticForms Gerrit-Branch: master Gerrit-Owner: Yaron Koren <yaro...@gmail.com> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits