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:
Sam Minnee 2010-10-18 22:37:11 +00:00
parent 7254c00aef
commit bd96d249f0

View File

@ -1844,7 +1844,7 @@ class Member_DatetimeOptionsetField extends OptionsetField {
$source = $this->getSource();
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);
if($key == $this->value) {
$useValue = false;