← Back to team overview

phpdevshell team mailing list archive

[Bug 767248] [NEW] function tagList($name, $object, $target = null) broken

 

Public bug reported:

Their seems to be a broken method in
function tagList($name, $object, $target = null)

If I pass only values $this->tagList(null, 'role', 13); the returned
value is always empty.

I do however expect the problem lies in the queryclass, where this is not correctly assembled:
		if (!empty($object)) $this->addWhere("tagObject = '%s'");
		if (!empty($name)) $this->addWhere("tagName = '%s'");
		if (!empty($target)) $this->addWhere("tagTarget = '%s'");

                return parent::extraBuild($parameters);

** Affects: phpdevshell
     Importance: High
     Assignee: Greg (gregfr)
         Status: New

-- 
You received this bug notification because you are a member of
PHPDevShell, which is subscribed to PHPDevShell.
https://bugs.launchpad.net/bugs/767248

Title:
  function tagList($name, $object, $target = null) broken

Status in Open Source PHP RAD Framework with UI.:
  New

Bug description:
  Their seems to be a broken method in
  function tagList($name, $object, $target = null)

  If I pass only values $this->tagList(null, 'role', 13); the returned
  value is always empty.

  I do however expect the problem lies in the queryclass, where this is not correctly assembled:
  		if (!empty($object)) $this->addWhere("tagObject = '%s'");
  		if (!empty($name)) $this->addWhere("tagName = '%s'");
  		if (!empty($target)) $this->addWhere("tagTarget = '%s'");

                  return parent::extraBuild($parameters);


Follow ups

References