Skip to content

Commit

Permalink
Merge pull request #13920 from pemaier/patch-70
Browse files Browse the repository at this point in the history
Update setting.php - missing part autocomplete_limit error handling
  • Loading branch information
danielkerr committed May 11, 2024
2 parents 02f9dde + 3e91069 commit c8fc26d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions upload/admin/controller/setting/setting.php
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ public function index(): void {
$data['config_pagination'] = $this->config->get('config_pagination');
$data['config_product_count'] = $this->config->get('config_product_count');
$data['config_pagination_admin'] = $this->config->get('config_pagination_admin');
$data['config_autocomplete_limit'] = $this->config->get('config_autocomplete_limit');
$data['config_product_report_status'] = $this->config->get('config_product_report_status');

// Review
Expand Down Expand Up @@ -503,6 +504,10 @@ public function save(): void {
$json['error']['pagination_admin'] = $this->language->get('error_pagination');
}

if (!$this->request->post['config_autocomplete_limit']) {
$json['error']['autocomplete_limit'] = $this->language->get('error_autocomplete_limit');
}

if (!$this->request->post['config_article_description_length']) {
$json['error']['article_description_length'] = $this->language->get('error_article_description_length');
}
Expand Down

0 comments on commit c8fc26d

Please sign in to comment.