• Модуль: timeman
  • Путь к файлу: ~/bitrix/modules/timeman/lib/form/schedule/violationform.php
  • Класс: BitrixTimemanFormScheduleViolationForm
  • Вызов: ViolationForm::resetUncheckedFixedViolations
private function resetUncheckedFixedViolations()
{
	if (!$this->isSaveStartEndViolations())
	{
		$this->resetFixedStartEndViolations();
		$this->startEndNotifyUsers = [];
	}
	else
	{
		if (!$this->isUseExactStartEndDay())
		{
			$this->resetFixedExactViolations();
		}
		if (!$this->isUseRelativeStartEndDay())
		{
			$this->resetFixedRelativeViolations();
		}
		if (!$this->isUseOffsetStartEndDay())
		{
			$this->resetFixedOffsetViolations();
		}
	}

	if (!$this->isSaveHoursPerDayViolations())
	{
		$this->minDayDuration = -1;
		$this->hoursPerDayNotifyUsers = [];
	}
	if (!$this->isSaveEditWorktimeViolations())
	{
		$this->maxAllowedToEditWorkTime = -1;
		$this->editWorktimeNotifyUsers = [];
	}
	if (!$this->isSaveHoursForPeriodViolations())
	{
		$this->maxWorkTimeLackForPeriod = -1;
		$this->hoursPerPeriodNotifyUsers = [];
	}
}