Fix default checkboxes not getting validated

This commit is contained in:
Nathan Gray 2013-06-18 16:39:26 +00:00
parent b7f83ef31f
commit 3f003ea3fb
2 changed files with 3 additions and 3 deletions

View File

@ -61,8 +61,8 @@ class etemplate_widget_checkbox extends etemplate_widget
// defaults for set and unset values
if (!$this->attrs['set_val'] && !$this->attrs['unset_val'])
{
$set_val = 1;
$unset_val = 0;
$set_val = 'true';
$unset_val = 'false';
}
else
{

View File

@ -150,7 +150,7 @@ class etemplate_widget_textbox extends etemplate_widget
}
}
$valid = $value;
error_log(__METHOD__."() $form_name: ".array2string($value_in).' --> '.array2string($value));
//error_log(__METHOD__."() $form_name: ".array2string($value_in).' --> '.array2string($value));
}
}
}