From 75aadf6eb118114f2ec6101e17392aee4293aac1 Mon Sep 17 00:00:00 2001 From: Tyler Renelle Date: Wed, 6 Mar 2013 13:32:10 -0500 Subject: [PATCH] add default numbers for restore tool if one isn't provided: #594 --- src/app/character.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/character.coffee b/src/app/character.coffee index ef2f36fadd..2fe875e563 100644 --- a/src/app/character.coffee +++ b/src/app/character.coffee @@ -82,7 +82,7 @@ module.exports.app = (appExports, model) -> batch = new BatchUpdate(model) batch.startTransaction() $('#restore-form input').each -> - batch.set $(this).attr('data-for'), parseInt($(this).val()) + batch.set $(this).attr('data-for'), parseInt($(this).val() || 1) batch.commit() user.on 'set', 'flags.customizationsNotification', (captures, args) ->