New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes: RecordCollectors - catching and translation messages #17228
base: developer
Are you sure you want to change the base?
Changes: RecordCollectors - catching and translation messages #17228
Conversation
@@ -190,4 +190,4 @@ private function parseData(): void | |||
unset($this->data['filings']); | |||
$this->data = \App\Utils::flattenKeys($this->data, 'ucfirst'); | |||
} | |||
} | |||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add empty line
app/RecordCollectors/Gus.php
Outdated
* @var array | ||
*/ | ||
protected array $validationMessages = [ | ||
// to fill messages |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
?
@@ -157,9 +157,12 @@ | |||
<span class="fa-solid fa-print mr-2"></span> | |||
{\App\Language::translate('LBL_PRINT')} | |||
</button> | |||
{elseif isset($SEARCH_DATA['error'])} | |||
{elseif isset($SEARCH_DATA['error']) } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
{elseif isset($SEARCH_DATA['error']) } | |
{elseif isset($SEARCH_DATA['error'])} |
<div class="alert alert-danger m-4" role="alert"> | ||
<span class="mdi mdi-alert-circle-outline mr-2"></span>{$SEARCH_DATA['error']} | ||
<span class="mdi mdi-alert-circle-outline mr-2"></span> | ||
{foreach from=$SEARCH_DATA['error'] key=KEY item=VALUE} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
encode
@@ -117,7 +117,7 @@ public function search(): array | |||
{ | |||
$companyNumber = str_replace([' ', ',', '.', '-'], '', $this->request->getByType('companyNumber', 'Text')); | |||
|
|||
if (!$this->isActive() && empty($companyNumber)) { | |||
if (empty($companyNumber) && !$this->isActive()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shouldn't it be "||" instead of "&&"?
Description
The changes made affect the translation of feedback messages from RecordCollector APIs.