diff --git a/infolog/inc/class.infolog_hooks.inc.php b/infolog/inc/class.infolog_hooks.inc.php
index 270dabc771..9b7b4572eb 100644
--- a/infolog/inc/class.infolog_hooks.inc.php
+++ b/infolog/inc/class.infolog_hooks.inc.php
@@ -250,6 +250,15 @@ class infolog_hooks
'admin' => False,
'default'=> 5,
),
+ 'limit_des_width' => array(
+ 'type' => 'input',
+ 'size' => 5,
+ 'label' => 'Limit width of description column ((effective only if lines limit is set), 0 for no limit)',
+ 'name' => 'limit_des_width',
+ 'help' => 'How wide should the description area be. This value is numeric and interpreted as em; 60 works reasonably well.',
+ 'xmlrpc' => True,
+ 'admin' => False,
+ ),
'set_start' => array(
'type' => 'select',
'label' => 'Startdate for new entries',
diff --git a/infolog/inc/class.infolog_ui.inc.php b/infolog/inc/class.infolog_ui.inc.php
index fbe56c35b1..e2d1b2c5d7 100644
--- a/infolog/inc/class.infolog_ui.inc.php
+++ b/infolog/inc/class.infolog_ui.inc.php
@@ -728,13 +728,15 @@ class infolog_ui
{
$values['css'] = '";
}
- // add scrollbar to long describtion, if user choose so in his prefs
- if ($this->prefs['limit_des_lines'] > 0 || (string)$this->prefs['limit_des_lines'] == '')
+ // add scrollbar to long description, if user choose so in his prefs
+ if ($this->prefs['limit_des_lines'] > 0 || (string)$this->prefs['limit_des_lines'] == '');
{
- $values['css'] .= '';
}
+
$sel_options = array(
'info_type' => $this->bo->enums['type'],
'pm_id' => array(lang('No project')),