Index: trunk/extensions/SemanticMediaWiki/includes/storage/SMW_SQLStore2_Queries.php |
— | — | @@ -714,7 +714,7 @@ |
715 | 715 | |
716 | 716 | // See if the getSQLCondition method exists and call it if this is the case. |
717 | 717 | if ( method_exists( $description, 'getSQLCondition' ) ) { |
718 | | - $customSQL = $description->getSQLCondition( $query->alias, $this->m_dbs ); |
| 718 | + $customSQL = $description->getSQLCondition( $query->alias, array_keys( $proptable->objectfields ), $this->m_dbs ); |
719 | 719 | } |
720 | 720 | |
721 | 721 | if ( $customSQL ) { |