• Модуль: timeman
  • Путь к файлу: ~/bitrix/modules/timeman/lib/form/worktime/worktimeeventform.php
  • Класс: BitrixTimemanFormWorktimeWorktimeEventForm
  • Вызов: WorktimeEventForm::runAfterValidate
protected function runAfterValidate()
{
	parent::runAfterValidate();
	if ($this->hasErrors())
	{
		return;
	}

	if ($this->recordedTime && !$this->recordedSeconds)
	{
		$this->recordedSeconds = TimeHelper::getInstance()->convertHoursMinutesToSeconds($this->recordedTime);
	}
	if ($this->recordedSeconds && !$this->recordedTime)
	{
		$this->recordedTime = TimeHelper::getInstance()->convertSecondsToHoursMinutes($this->recordedSeconds);
	}
}