From 6a014700da479eb0919608438391b31e104db5cb Mon Sep 17 00:00:00 2001 From: Ltrlg Date: Fri, 21 Feb 2014 20:57:56 +0100 Subject: [PATCH] Do not add 'required' if not set and false wanted The 'required' property of a 'Param' is optional and defaults to false. Thus there is no reason for adding it when it was not set and the user wants it to be false. Bug: 61761 Change-Id: I2b2fae5d2d8b1dac2ad2e1a965d9ba5bd7372eef --- modules/ext.templateDataGenerator.core.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ext.templateDataGenerator.core.js b/modules/ext.templateDataGenerator.core.js index dba15f53..32029fc6 100644 --- a/modules/ext.templateDataGenerator.core.js +++ b/modules/ext.templateDataGenerator.core.js @@ -580,7 +580,7 @@ break; case 'required': newValue = $domEl.prop( 'checked' ); - if ( paramObj[paramProp] !== newValue ) { + if ( paramObj[paramProp] !== undefined || newValue === true ) { paramObj[paramProp] = newValue; } break;