Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ before starting to add changes. Use example [placed in the end of the page](#exa

## [Unreleased]

- [PR-192](https://github.com/OS2Forms/os2forms/pull/192)
Fix bug in MitidChildrenSelectAjaxBehaviour.php
- [PR-228](https://github.com/OS2Forms/os2forms/pull/228)
Added Drupal Core patch ensuring conditionals based upon computed twig
works as intended.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ public static function mitidChildrenSelectAjax(array &$form, FormStateInterface
if ($cprPlugin->isReady()) {
$cprLookupResult = $cprPlugin->lookup($childCpr);

if (!$cprLookupResult->isSuccessful()) {
return $response;
}

/** @var \Drupal\webform\WebformSubmissionForm $webformSubmissionForm */
$webformSubmissionForm = $form_state->getFormObject();
/** @var \Drupal\webform\WebformSubmissionInterface $webformSubmission */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ interface NemidPrepopulateFieldInterface {
/**
* String representation of the prepopulate field key.
*
* Is used to prepopulate the field from the corresponding plugin..
* Is used to prepopulate the field from the corresponding plugin.
*
* @param array $element
* The element to prepopulate value for.
Expand Down
2 changes: 1 addition & 1 deletion modules/os2forms_nemid/src/Service/FormsHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ public function retrieveCompanyLookupResult(FormStateInterface $form_state) {
}

/**
* Performs lookup of the company data..
* Performs lookup of the company data.
*
* Uses CVR or P-number based services depending on the available values.
*
Expand Down
Loading