summaryrefslogtreecommitdiffstats
path: root/lib/redmine/views/labelled_form_builder.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/redmine/views/labelled_form_builder.rb')
-rw-r--r--lib/redmine/views/labelled_form_builder.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/redmine/views/labelled_form_builder.rb b/lib/redmine/views/labelled_form_builder.rb
index 8c97b8215..f364ca8e2 100644
--- a/lib/redmine/views/labelled_form_builder.rb
+++ b/lib/redmine/views/labelled_form_builder.rb
@@ -49,6 +49,7 @@ class Redmine::Views::LabelledFormBuilder < ActionView::Helpers::FormBuilder
# display the value before type cast when the entered value is not valid
if @object.errors[field].blank?
options = options.merge(:value => format_hours(@object.send field))
+ .with_defaults(:placeholder => 'h:mm')
end
text_field field, options
end