fix validation on a few views

This commit is contained in:
Andras Bacsai committed 2025-10-06 21:25:24 +02:00
1 parent 141199b41f
commit ae64f8cb86
4 files changed
+9 -5

No files matched your search

+3 -1
View File
@@ -544,6 +544,9 @@ class General extends Component
{
try {
$this->authorize('update', $this->application);
$this->validate();
$this->application->fqdn = str($this->application->fqdn)->replaceEnd(',', '')->trim();
$this->application->fqdn = str($this->application->fqdn)->replaceStart(',', '')->trim();
$this->application->fqdn = str($this->application->fqdn)->trim()->explode(',')->map(function ($domain) {
@@ -584,7 +587,6 @@ class General extends Component
return;
}
}
$this->validate();
if ($this->ports_exposes !== $this->application->ports_exposes || $this->is_container_label_escape_enabled !== $this->application->settings->is_container_label_escape_enabled) {
$this->resetDefaultLabels();