Skip to content

Commit 37900c3

Browse files
author
Rias
committed
Fix UTF8 issue in elementIndex
1 parent 83fe865 commit 37900c3

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
44

55
The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/).
66

7+
## [1.1.5] - 2019-04-15
8+
### Fixed
9+
- Finally fix the element index UTF8 issue.
10+
711
## [1.1.4] - 2019-04-01
812
### Fixed
913
- Fix utf8 issue

src/elements/ContactFormSubmission.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
use craft\base\Element;
1616
use craft\elements\actions\Delete;
1717
use craft\elements\db\ElementQueryInterface;
18+
use craft\helpers\StringHelper;
1819
use craft\helpers\UrlHelper;
1920
use rias\contactformextensions\elements\db\ContactFormSubmissionQuery;
2021

@@ -182,7 +183,8 @@ public function getTableAttributeHtml(string $attribute): string
182183
}
183184
$html .= '</ul>';
184185

185-
return $html;
186+
187+
return StringHelper::convertToUtf8($html);
186188
}
187189

188190
return parent::getTableAttributeHtml($attribute); // TODO: Change the autogenerated stub

0 commit comments

Comments
 (0)