mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
MINOR Fixed incorrect word "colon" with "dot" (from r108002)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@112704 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
7254c00aef
commit
bd96d249f0
@ -1844,7 +1844,7 @@ class Member_DatetimeOptionsetField extends OptionsetField {
|
|||||||
$source = $this->getSource();
|
$source = $this->getSource();
|
||||||
|
|
||||||
foreach($source as $key => $value) {
|
foreach($source as $key => $value) {
|
||||||
// convert the ID to an HTML safe value (colons are not replaced, as they are valid in an ID attribute)
|
// convert the ID to an HTML safe value (dots are not replaced, as they are valid in an ID attribute)
|
||||||
$itemID = $this->id() . '_' . preg_replace('/[^\.a-zA-Z0-9\-\_]/', '_', $key);
|
$itemID = $this->id() . '_' . preg_replace('/[^\.a-zA-Z0-9\-\_]/', '_', $key);
|
||||||
if($key == $this->value) {
|
if($key == $this->value) {
|
||||||
$useValue = false;
|
$useValue = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user