mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-23 10:38:45 +02:00
💚 N°1825 - Fix tagset control when no limit
This commit is contained in:
@@ -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}");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user