Skip to content

Commit

Permalink
Fixes #12852 - override checkbox always enables default value when us…
Browse files Browse the repository at this point in the history
…e_puppet_default is false
  • Loading branch information
orrabin authored and Dominic Cleal committed Dec 17, 2015
1 parent 5d6962f commit 4a7dcb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/assets/javascripts/lookup_keys.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ function toggleOverrideValue(item) {
var override = $(item).is(':checked');
var fields = $(item).closest('.fields');
var fields_to_disable = fields.find("[id$='_required'],[id$='_key_type'],[id$='_validator_type'],[id$='use_puppet_default'],[id$='hidden_value']");
var use_puppet_default = fields.find("[id$='use_puppet_default']").is(':checked');
var use_puppet_default = $(item).closest('fieldset').find("[id$='use_puppet_default']").is(':checked');
var default_value_field = fields.find("[id$='_default_value']");
var pill_icon = $('#pill_' + fields[0].id +' i');
var override_value_div = fields.find("[id$='lookup_key_override_value']");
Expand Down

0 comments on commit 4a7dcb7

Please sign in to comment.