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

TOPIC:

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

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
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

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
  • 2
Time to create page: 0.067 seconds

I've evaluated lots of other Joomla Component Dev tools such as Shell Manager (J)enesis Danny's Joomla! 1.5 MVC Component Code Generator Marco's Component Maker and I must admit that I love what I see on your site! Lots of potential... Otherwise Great Job and keep up the good work!!!
Clifton (forum)

Get Started