diff --git a/module/Olcs/src/Controller/Lva/Traits/ApplicationOverviewTrait.php b/module/Olcs/src/Controller/Lva/Traits/ApplicationOverviewTrait.php index c066608e94..6ded2473d9 100644 --- a/module/Olcs/src/Controller/Lva/Traits/ApplicationOverviewTrait.php +++ b/module/Olcs/src/Controller/Lva/Traits/ApplicationOverviewTrait.php @@ -23,8 +23,8 @@ trait ApplicationOverviewTrait public function indexAction() { /** - * @var \Laminas\Http\Request $request -*/ + * @var \Laminas\Http\Request $request + */ $request = $this->getRequest(); if ($request->isPost() && $this->isButtonPressed('cancel')) { @@ -132,13 +132,14 @@ protected function formatDataForForm($application) { return [ 'details' => [ - 'receivedDate' => $application['receivedDate'] ?? null, - 'targetCompletionDate' => $application['targetCompletionDate'] ?? null, - 'leadTcArea' => $application['licence']['organisation']['leadTcArea']['id'] ?? null, - 'translateToWelsh' => $application['licence']['translateToWelsh'] ?? null, - 'overrideOppositionDate' => $application['overrideOoo'] ?? null, - 'version' => $application['version'] ?? null, - 'id' => $application['id'] ?? null, + 'receivedDate' => $application['receivedDate'] ?? null, + 'targetCompletionDate' => $application['targetCompletionDate'] ?? null, + 'leadTcArea' => $application['licence']['organisation']['leadTcArea']['id'] ?? null, + 'translateToWelsh' => $application['licence']['translateToWelsh'] ?? null, + 'overrideOppositionDate' => $application['overrideOoo'] ?? null, + 'applicationReferredToPi' => $application['applicationReferredToPi'] ?? null, + 'version' => $application['version'] ?? null, + 'id' => $application['id'] ?? null, ], 'tracking' => $application['applicationTracking'] ?? null, ]; @@ -215,6 +216,7 @@ protected function mapData($formData) 'leadTcArea' => $details['leadTcArea'], 'tracking' => $formData['tracking'], 'overrideOppositionDate' => $details['overrideOppositionDate'], + 'applicationReferredToPi' => $details['applicationReferredToPi'], 'validateAppCompletion' => true, ]; diff --git a/module/Olcs/src/Form/Model/Fieldset/ApplicationOverviewDetails.php b/module/Olcs/src/Form/Model/Fieldset/ApplicationOverviewDetails.php index 9585e05032..c3afe2d281 100644 --- a/module/Olcs/src/Form/Model/Fieldset/ApplicationOverviewDetails.php +++ b/module/Olcs/src/Form/Model/Fieldset/ApplicationOverviewDetails.php @@ -77,6 +77,16 @@ class ApplicationOverviewDetails */ public $overrideOppositionDate = null; + /** + * @Form\Options({ + * "checked_value":"Y", + * "unchecked_value":"N", + * "label":"overview.fieldset.check.application-referred-to-pi" + * }) + * @Form\Type("OlcsCheckbox") + */ + public $applicationReferredToPi = null; + /** * @Form\Attributes({"value":""}) * @Form\Type("Hidden")