svn: /pear/pearweb/trunk/public_html/pepr/ pepr-comments-show.php

[email protected] ("Daniel O'Connor") Wed, 13 Apr 2011 10:47:02 +0000
Newsgroups php.pear.cvs,php.pear.core
Message-ID <[email protected]>
--f999854e5da66e653ec91d6c33daa50a7d5ae86f
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit

clockwerx                                Wed, 13 Apr 2011 10:47:02 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=310203

Log:
Updated labels

Changed paths:
    U   pear/pearweb/trunk/public_html/pepr/pepr-comments-show.php

Modified: pear/pearweb/trunk/public_html/pepr/pepr-comments-show.php
===================================================================
--- pear/pearweb/trunk/public_html/pepr/pepr-comments-show.php	2011-04-13 10:23:36 UTC (rev 310202)
+++ pear/pearweb/trunk/public_html/pepr/pepr-comments-show.php	2011-04-13 10:47:02 UTC (rev 310203)
@@ -48,9 +48,9 @@
                             'rows' => 20,
                             'required' => 'required',
                             'placeholder' => 'Hi. Can I politely suggest that...',
-                            'id'   => 'comment_field'));
+                            'id'   => 'comment_field'))->setLabel('Comments:');

-    $form->addElement('submit', 'submit')->setLabel('Add New Comment');
+    $form->addElement('submit', 'submit');

     $c->addFilter('trim');
     $c->addRule('required', 'A comment is required');
@@ -62,9 +62,6 @@
                                        $c->getValue());
             $proposal->addComment($c->getValue(), 'package_proposal_comments');
             report_success('Your comment was successfully processed');
-            $c->setValue('');
-        } else {
-            report_error($form->getElementError('comment'));
         }
     }
 }

--f999854e5da66e653ec91d6c33daa50a7d5ae86f--