Permalink
Browse files

Fixes bug with field type "checkbox"

This commit adds the missing compare parameter "on"
  • Loading branch information...
1 parent fc15a5b commit 4290da2cfeb7f6fd650ac028dfffbb1098a59872 @PhilippSchreiber committed Jan 15, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 custom_metadata.php
View
@@ -926,7 +926,7 @@ function _display_metadata_field( $field_slug, $field, $object_type, $object_id
<?php break; ?>
<?php case 'checkbox': ?>
- <input type="checkbox" id="<?php echo $field_slug; ?>" name="<?php echo $field_id; ?>" <?php checked($checked = $v ); ?> />
+ <input type="checkbox" id="<?php echo $field_slug; ?>" name="<?php echo $field_id; ?>" <?php checked($checked = $v, 'on' ); ?> />
<?php break; ?>
<?php case 'radio': ?>

0 comments on commit 4290da2

Please sign in to comment.