Skip to content

A free open source IT asset/license management system

Skip computing sendCheckInEmail

Marcus Mooredf53d5d966f8
diff --git a/app/Livewire/CategoryEditForm.php b/app/Livewire/CategoryEditForm.php
index 10c8621509..4ac12efe79 100644
--- a/app/Livewire/CategoryEditForm.php
+++ b/app/Livewire/CategoryEditForm.php
@@ -12,37 +12,17 @@ class CategoryEditForm extends Component
public $eulaText;
- public $originalSendCheckInEmailValue;
-
public bool $requireAcceptance;
public bool $sendCheckInEmail;
public bool $useDefaultEula;
- public function mount()
- {
- $this->originalSendCheckInEmailValue = $this->sendCheckInEmail;
-
- if ($this->eulaText || $this->useDefaultEula) {
- $this->sendCheckInEmail = 1;
- }
- }
-
public function render()
{
return view('livewire.category-edit-form');
}
- public function updated($property, $value)
- {
- if (! in_array($property, ['eulaText', 'useDefaultEula'])) {
- return;
- }
-
- $this->sendCheckInEmail = $this->eulaText || $this->useDefaultEula ? 1 : $this->originalSendCheckInEmailValue;
- }
-
public function getShouldDisplayEmailMessageProperty(): bool
{
return $this->eulaText || $this->useDefaultEula;