💚 N°1825 - Fix tagset control when no limit

This commit is contained in:
Eric
2018-12-05 10:08:40 +01:00
parent a4a09cd8c7
commit f4f5281769

View File

@@ -323,7 +323,7 @@ final class ormTagSet extends ormSet
*/
public function Add($sTagCode)
{
if ($this->Count() === $this->iLimit)
if (($this->iLimit != 0) && ($this->Count() == $this->iLimit))
{
throw new CoreException("Maximum number of tags ({$this->iLimit}) reached for {$this->sClass}:{$this->sAttCode}");
}