From 50215b65f78ccc72f911feebfcae5301b786ab04 Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Thu, 26 Aug 2010 18:42:37 +0200 Subject: [PATCH] Add getErrors(). --- framework/Form/Form.php | 5 +++++ whups/ticket/type.php | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/framework/Form/Form.php b/framework/Form/Form.php index 0d374b729..9f7bb94e1 100644 --- a/framework/Form/Form.php +++ b/framework/Form/Form.php @@ -644,6 +644,11 @@ class Horde_Form { $this->_errors = array(); } + function getErrors() + { + return $this->_errors; + } + function getError($var) { if (is_a($var, 'Horde_Form_Variable')) { diff --git a/whups/ticket/type.php b/whups/ticket/type.php index 03bb182ff..ce029ae29 100644 --- a/whups/ticket/type.php +++ b/whups/ticket/type.php @@ -115,7 +115,7 @@ if ($form == 'settypestep2form') { $ticket->show(); } } else { - $notification->push(var_export($settypeform->_errors), 'horde.error'); + $notification->push(var_export($settypeform->getErrors()), 'horde.error'); $action = 'st2'; } } -- 2.11.0