NumberPicker: correct max day in input dialog (#7803)

reviewable/pr7809/r1
hius07 3 years ago committed by GitHub
parent 600c2bcf81
commit d8ea93662f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -124,6 +124,9 @@ function NumberPickerWidget:init()
local callback_input = nil
if self.value_table == nil then
callback_input = function()
if self.date_month and self.date_year then
self.value_max = self:getDaysInMonth(self.date_month:getValue(), self.date_year:getValue())
end
input_dialog = InputDialog:new{
title = _("Enter number"),
input_hint = T("%1 (%2 - %3)", self.formatted_value, self.value_min, self.value_max),

Loading…
Cancel
Save