Add getErrors().
authorJan Schneider <jan@horde.org>
Thu, 26 Aug 2010 16:42:37 +0000 (18:42 +0200)
committerJan Schneider <jan@horde.org>
Thu, 26 Aug 2010 16:42:37 +0000 (18:42 +0200)
framework/Form/Form.php
whups/ticket/type.php

index 0d374b7..9f7bb94 100644 (file)
@@ -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')) {
index 03bb182..ce029ae 100644 (file)
@@ -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';
     }
 }