Skip to content

Commit

Permalink
FieldConfigForm: Declare template field config type
Browse files Browse the repository at this point in the history
  • Loading branch information
raviks789 committed Apr 12, 2024
1 parent c01c430 commit 9c24aad
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions application/forms/Config/FieldConfigForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
namespace Icinga\Module\Jira\Forms\Config;

use Icinga\Application\Config;
use Icinga\Data\ConfigObject;
use Icinga\Module\Jira\RestApi;
use Icinga\Web\Session;
use ipl\Html\Contract\FormSubmitElement;
Expand Down Expand Up @@ -51,9 +52,10 @@ public function __construct(RestApi $jira, string $templateName, $fieldId = null
$this->fieldId = $fieldId;
}

$templateFields = $this->templateConfig->getSection($templateName)->toArray();
/** @var ConfigObject<string> $templateFields */
$templateFields = $this->templateConfig->getSection($templateName);

$this->fieldValue = $templateFields[$fieldId];
$this->fieldValue = $templateFields->toArray()[$fieldId];
}
}

Expand Down

0 comments on commit 9c24aad

Please sign in to comment.