Commit 42af4a57 authored by alexpott's avatar alexpott
Browse files

Issue #2003288 by NonProfit, Dan Reinders: Rename Views method set_distinct() to setDistinct().

parent b0d6b2ac
......@@ -158,7 +158,7 @@ public function init(ViewExecutable $view, DisplayPluginBase $display, array &$o
* @param bool $value
* Should the view by distincted.
*/
function set_distinct($value = TRUE) {
protected function setDistinct($value = TRUE) {
if (!(isset($this->no_distinct) && $value)) {
$this->distinct = $value;
}
......@@ -1369,7 +1369,7 @@ function alter(ViewExecutable $view) {
function build(ViewExecutable $view) {
// Make the query distinct if the option was set.
if (!empty($this->options['distinct'])) {
$this->set_distinct(TRUE);
$this->setDistinct(TRUE);
}
// Store the view in the object to be able to use it later.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment