mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
💚 N°1825 - Fix ormset control when no limit
This commit is contained in:
@@ -264,7 +264,7 @@ class ormSet
|
||||
*/
|
||||
public function Add($oItem)
|
||||
{
|
||||
if ($this->Count() === $this->iLimit)
|
||||
if (($this->iLimit != 0) && ($this->Count() === $this->iLimit))
|
||||
{
|
||||
throw new CoreException("Maximum number of items ({$this->iLimit}) reached for {$this->sClass}:{$this->sAttCode}");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user