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

From: Date: Wed, 13 Apr 2011 10:47:02 +0000
Subject: svn: /pear/pearweb/trunk/public_html/pepr/ pepr-comments-show.php
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-core+get-9896@lists.php.net to get a copy of this message
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')); } } }

« previous php.pear.core (#9896) next »