Skip to content

Commit

Permalink
Merge branch 'integration'
Browse files Browse the repository at this point in the history
  • Loading branch information
nitriques committed Oct 7, 2015
2 parents ea69ac9 + 94569ee commit ff955e2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions extension.driver.php
Original file line number Diff line number Diff line change
Expand Up @@ -308,8 +308,7 @@ public function install() {
`disable_pagination` enum('yes','no') default 'no',
`filtered_fields` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `field_id` (`field_id`),
UNIQUE KEY `unique`(`entry_id`)
UNIQUE KEY `field_id` (`field_id`)
) TYPE=MyISAM
");
}
Expand Down
2 changes: 1 addition & 1 deletion fields/field.order_entries.php
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ public function buildFilteringSQL($filters,$prefix =''){
foreach ($filterableFields as $key => $filterable_field) {
if (isset($filters[$filterable_field])){
$where .= " AND {$prefix}field_{$filterable_field} = '{$filters[$filterable_field]}'";
} else {
} else {
$where .= " AND {$prefix}field_{$filterable_field} is NULL";
}
}
Expand Down

0 comments on commit ff955e2

Please sign in to comment.