@@ -694,6 +698,10 @@
+
+ checked id="_" value="" onclick="update_checkbox_options(/^_([0-9A-Za-z-]+)/, '');">
+
+
Index: kernel/db/db_tag_processor.php
===================================================================
--- kernel/db/db_tag_processor.php (revision 14694)
+++ kernel/db/db_tag_processor.php (working copy)
@@ -2906,6 +2906,33 @@
}
/**
+ * Displays option name by it's value
+ *
+ * @param Array $params
+ * @return string
+ * @access protected
+ */
+ protected function OptionValue($params)
+ {
+ $object =& $this->getObject($params);
+ /* @var $object kDBItem */
+
+ $value = $params['value'];
+ $field = $this->SelectParam($params, 'name,field');
+
+ $field_options = $object->GetFieldOptions($field);
+
+ if ( isset($field_options['options'][$value]) ) {
+ $value = $field_options['options'][$value];
+ $use_phrases = isset($field_options['use_phrases']) ? $field_options['use_phrases'] : false;
+
+ return $use_phrases ? $this->Application->Phrase($value) : $value;
+ }
+
+ return '';
+ }
+
+ /**
* Returns/sets form name for current object
*
* @param Array $params
|