Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1
  • 2

TOPIC: [FIXED] List filters NOT logic not working

List filters NOT logic not working 02 Dec 2016 10:31 #14808

  • admin
  • admin's Avatar
  • Online
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 984
  • Karma: 140
Or manual in the file :
classes/model/list.php

function :
filterPivot()
switch ($logic)
{
	case 'NOT':
	case 'OR':
		// Matches "at least one" value
		$conditions = array();
		foreach($values as $value)
		{
			if (empty($value))
				continue;

			$conditions[] = 'a.' . $relation->foreignKey . ' = ' . (int)$value;
		}




// FIX : THIS CHECK HERE
		if (count($conditions))
		{

			// Search for all related items matching the filter values
			$ids = $this->belongsOf($relation, $conditions);

			if ($logic == 'OR')
				// SQL Restriction list from the related items founds
				$this->addRestrict($ids);
			else if ($logic == 'NOT')
				// SQL Exclusion of the related items founds.
				$this->addExclude($ids);

		}

		break;
Coding is now a piece of cake
The administrator has disabled public write access.
  • Page:
  • 1
  • 2
Time to create page: 0.102 seconds

Get Started