mirror of
https://github.com/wintercms/winter.git
synced 2024-06-28 05:33:29 +02:00
Align [] replacement with FormField
This commit is contained in:
parent
b3d716ee4d
commit
c6aca8cd18
@ -131,7 +131,7 @@ abstract class WidgetBase
|
|||||||
if ($suffix !== null)
|
if ($suffix !== null)
|
||||||
$id .= '-' . $suffix;
|
$id .= '-' . $suffix;
|
||||||
|
|
||||||
$id = str_replace(['[', ']'], '__', $id);
|
$id = rtrim(str_replace(['[', ']'], '-', $id), '-');
|
||||||
|
|
||||||
return $id;
|
return $id;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user