Index: trunk/kernel/include/config.php =================================================================== diff -u -N -r3736 -r4926 --- trunk/kernel/include/config.php (.../config.php) (revision 3736) +++ trunk/kernel/include/config.php (.../config.php) (revision 4926) @@ -302,7 +302,21 @@ break; case 'label': - if($this->default_value) $o .= $this->default_value; + if ($this->default_value) { + $tag_params = clsHtmlTag::ParseAttributes($this->ValueList); + if (isset($tag_params['cut_first'])) { + $cut_first = $tag_params['cut_first']; + if (strlen($this->default_value) > $cut_first) { + $o .= substr($this->default_value, 0, $cut_first).' ...'; + } + else { + $o .= $this->default_value; + } + } + else { + $o .= $this->default_value; + } + } break; case 'radio': Index: trunk/kernel/units/custom_fields/custom_fields_event_handler.php =================================================================== diff -u -N -r4842 -r4926 --- trunk/kernel/units/custom_fields/custom_fields_event_handler.php (.../custom_fields_event_handler.php) (revision 4842) +++ trunk/kernel/units/custom_fields/custom_fields_event_handler.php (.../custom_fields_event_handler.php) (revision 4926) @@ -43,7 +43,7 @@ $object->addFilter('itemtype_filter', '%1$s.Type = '.$item_type); } - if (!$this->Application->IsAdmin()) { + if (!($this->Application->isDebugMode() && $this->Application->IsAdmin())) { $object->addFilter('user_filter', '%1$s.IsSystem = 0'); } } Index: trunk/core/units/custom_fields/custom_fields_event_handler.php =================================================================== diff -u -N -r4842 -r4926 --- trunk/core/units/custom_fields/custom_fields_event_handler.php (.../custom_fields_event_handler.php) (revision 4842) +++ trunk/core/units/custom_fields/custom_fields_event_handler.php (.../custom_fields_event_handler.php) (revision 4926) @@ -43,7 +43,7 @@ $object->addFilter('itemtype_filter', '%1$s.Type = '.$item_type); } - if (!$this->Application->IsAdmin()) { + if (!($this->Application->isDebugMode() && $this->Application->IsAdmin())) { $object->addFilter('user_filter', '%1$s.IsSystem = 0'); } }