Fixed issue#413 - Can't process email / Error creating ticket with changed Ticket Number Format.

This commit is contained in:
Martin Edenhofer 2016-11-16 07:58:42 +01:00
parent d7565e0f55
commit 9d5e5013dd

View file

@ -43,6 +43,14 @@ module Ticket::Number::Date
# vehikel number. The modulus to 10 of this sum is substracted from
# 10. See: http://www.pruefziffernberechnung.de/F/Fahrzeugnummer.shtml
# (german)
# fix for https://github.com/zammad/zammad/issues/413 - can be removed later
if config.class == FalseClass || config.class == TrueClass
config = {
checksum: config
}
end
if config[:checksum]
chksum = 0
mult = 1