--- /usr/share/zabbix/dashconf.php.orig	2013-10-15 15:25:56.000000000 +0200
+++ /usr/share/zabbix/dashconf.php	2013-10-24 16:50:14.000000000 +0200
@@ -40,6 +40,7 @@
 	'groupids'=>	array(T_ZBX_INT, O_OPT, P_SYS,	NULL,				NULL),
 	'new_right'=>	array(T_ZBX_STR, O_OPT,	null,	null,				null),
 	'trgSeverity'=>	array(T_ZBX_INT, O_OPT, P_SYS,	NULL,				NULL),
+	'lastiss_cnt'=>	array(T_ZBX_INT, O_OPT, P_SYS,	BETWEEN(1, 99),			NULL),
 	'grpswitch'=>	array(T_ZBX_INT, O_OPT, P_SYS,	BETWEEN(0, 1),		NULL),
 
 	'maintenance'=>	array(T_ZBX_INT, O_OPT, P_SYS,	BETWEEN(0, 1),		NULL),
@@ -84,6 +85,7 @@
 
 	}
 
+	CProfile::update('web.dashconf.last_issues.count', $_REQUEST['lastiss_cnt'], PROFILE_TYPE_INT);
 	jsRedirect('dashboard.php');
 }
 elseif (isset($_REQUEST['new_right'])) {
@@ -138,6 +140,7 @@
 
 	$severity = get_request('trgSeverity', array());
 	$severity = array_keys($severity);
+	$lastiss_cnt = CProfile::get('web.dashconf.last_issues.count', DEFAULT_LATEST_ISSUES_CNT);
 }
 else {
 	$filterEnable = CProfile::get('web.dashconf.filter.enable', 0);
@@ -152,6 +155,7 @@
 
 	$severity = CProfile::get('web.dashconf.triggers.severity', '0;1;2;3;4;5');
 	$severity = zbx_empty($severity) ? array() : explode(';', $severity);
+	$lastiss_cnt = CProfile::get('web.dashconf.last_issues.count', DEFAULT_LATEST_ISSUES_CNT);
 }
 
 $dashForm->addVar('filterEnable', $filterEnable);
@@ -260,6 +264,7 @@
 	$cb->setAttribute('title', _('Event acknowledging disabled'));
 }
 $dashList->addRow(_('Problem display'), $cb);
+$dashList->addRow(_('Last issues count'), new CNumericBox('lastiss_cnt', $lastiss_cnt, 2));
 //-----
 
 $divTabs->addTab('dashFilterTab', _('Filter'), $dashList);
--- /usr/share/zabbix/dashboard.php.orig	2013-10-12 15:51:53.000000000 +0200
+++ /usr/share/zabbix/dashboard.php	2013-10-24 16:17:38.000000000 +0200
@@ -57,6 +57,7 @@
 $dashconf['severity'] = null;
 $dashconf['extAck'] = 0;
 $dashconf['filterEnable'] = CProfile::get('web.dashconf.filter.enable', 0);
+$dashconf['limit'] = CProfile::get('web.dashconf.last_issues.count', DEFAULT_LATEST_ISSUES_CNT);
 if ($dashconf['filterEnable'] == 1) {
 	// groups
 	$dashconf['grpswitch'] = CProfile::get('web.dashconf.groups.grpswitch', 0);
@@ -314,7 +315,7 @@
 // last issues
 $refresh_menu = get_icon('menu', array('menu' => 'hat_lastiss'));
 $lastiss = new CUIWidget('hat_lastiss', new CSpan(_('Loading...'), 'textcolorstyles'), CProfile::get('web.dashboard.hats.hat_lastiss.state', 1));
-$lastiss->setHeader(_n('Last %1$d issue', 'Last %1$d issues', DEFAULT_LATEST_ISSUES_CNT), array($refresh_menu));
+$lastiss->setHeader(_n('Last %1$d issue', 'Last %1$d issues', $dashconf['limit']), array($refresh_menu));
 $lastiss->setFooter(new CDiv(SPACE, 'textwhite', 'hat_lastiss_footer'));
 $rightColumn[] = $lastiss;
 
