Skip to content

Commit

Permalink
Merge pull request FrozenNode#733 from frzsombor/patch-8d
Browse files Browse the repository at this point in the history
Fix BOOL field always showing "true" if it's not editable
  • Loading branch information
janhartigan committed Nov 16, 2014
2 parents 38de78a + b7c2723 commit e2da827
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/views/templates/edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@
<input type="checkbox" data-bind="attr:{disabled: $root.freezeForm, id: field_id}, bool: field_name, checked: $root[field_name]" />
<!-- /ko -->
<!-- ko ifnot: editable -->
<span data-bind="text: $root[field_name]() ? 'yes' : 'no'"></span>
<span data-bind="text: parseInt($root[field_name]()) ? 'yes' : 'no'"></span>
<!-- /ko -->
<!-- /ko -->

Expand Down
2 changes: 1 addition & 1 deletion src/views/templates/settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
<input type="checkbox" data-bind="attr: {disabled: $root.freezeForm, id: field_id}, bool: field_name, checked: $root[field_name]" />
<!-- /ko -->
<!-- ko ifnot: editable -->
<span data-bind="text: $root[field_name]() ? 'yes' : 'no'"></span>
<span data-bind="text: parseInt($root[field_name]()) ? 'yes' : 'no'"></span>
<!-- /ko -->
<!-- /ko -->

Expand Down

0 comments on commit e2da827

Please sign in to comment.