From 4c7e1b4cfd40f48cff4210add6d8c81254d700c2 Mon Sep 17 00:00:00 2001 From: David Delikat Date: Sat, 11 Apr 2009 23:11:38 +0000 Subject: [PATCH] Form::Date::toHtml was coded to set value tgo the default this caused the default value to be displayed in some cases. --- docs/changelog/7.x.x.txt | 1 + lib/WebGUI/Form/Date.pm | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/changelog/7.x.x.txt b/docs/changelog/7.x.x.txt index cbaa4660e..0d40b782c 100644 --- a/docs/changelog/7.x.x.txt +++ b/docs/changelog/7.x.x.txt @@ -1,4 +1,5 @@ 7.7.4 + - fixed #10122: fixed date object to not change the value in 'toHtml' function. - fixed #9764: drag drop now uses the handle for 'pickup' rather than the whole object. - Default Survey Question bundles now store full answer information in json. Everything configured in an answer will be saved in a default configuration. - Survey [[question variable]] now returns the shown answer text for multiple choice questions, and the recorded value for non-multiple choice questions. diff --git a/lib/WebGUI/Form/Date.pm b/lib/WebGUI/Form/Date.pm index 311e56dcc..bf1bd22dd 100644 --- a/lib/WebGUI/Form/Date.pm +++ b/lib/WebGUI/Form/Date.pm @@ -221,7 +221,7 @@ sub toHtml { || !$self->get("value") || $self->get("value") =~ m/^\d+$/) { # Epoch format - $value = $self->set("value",$self->session->datetime->epochToSet($self->getOriginalValue)); + $value = $self->session->datetime->epochToSet($self->getOriginalValue); } else { # MySQL format