MINOR Fixed incorrect word "colon" with "dot"

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.4@108002 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sean Harvey 2010-07-15 04:05:14 +00:00 committed by Sam Minnee
parent 2cf33bc2d7
commit ae6d1c8e33

View File

@ -1845,7 +1845,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;