Skip to content
Snippets Groups Projects
Commit af7cf191 authored by Joseph Zhao's avatar Joseph Zhao
Browse files

Issue #1715400: Views Filter by content lock

parent d171b907
Branches 3.5.x
Tags 3.6.0
No related merge requests found
......@@ -15,10 +15,10 @@ class ContentLockViewsHandlerFilterLocked extends views_handler_filter_boolean_o
public function query() {
$this->ensure_my_table();
if (empty($this->value)) {
$this->query->add_where($this->options['group'], "$this->table_alias.timestamp IS NULL");
$this->query->add_where($this->options['group'], $this->table_alias . ".timestamp", "NULL", "=");
}
else {
$this->query->add_where($this->options['group'], "$this->table_alias.timestamp IS NOT NULL");
$this->query->add_where($this->options['group'], $this->table_alias . ".timestamp", "NULL", "<>");
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment