Skip to content

Commit

Permalink
removed key inexistant column
Browse files Browse the repository at this point in the history
  • Loading branch information
nitriques committed Oct 7, 2015
1 parent 96232ed commit 94569ee
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 94569ee

Please sign in to comment.