Skip to content

Commit 8763afa

Browse files
authored
Allow use inside Editable
IDs created by yii generateRandomString have capital and small letters, in the normalize function capital letters were removed only for indexPlaceholder and in id repained capital so it was not everywhere replaced in js Templates.
1 parent c63151f commit 8763afa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/BaseColumn.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ abstract public function getElementName($index, $withPrefix = true);
280280
* @return mixed
281281
*/
282282
private function normalize($name) {
283-
return str_replace(['[]', '][', '[', ']', ' ', '.'], ['', '-', '-', '', '-', '-'], strtolower($name));
283+
return str_replace(['[]', '][', '[', ']', ' ', '.'], ['', '-', '-', '', '-', '-'], $name);
284284
}
285285

286286
/**

0 commit comments

Comments
 (0)