Re: Bug->Req #19403 [Opn]: getValue() returns wrong technical field

From: Date: Mon, 07 May 2012 13:20:05 +0000
Subject: Re: Bug->Req #19403 [Opn]: getValue() returns wrong technical field
References: 1  Groups: php.pear.bugs 
Request: Send a blank email to pear-bugs+get-8616@lists.php.net to get a copy of this message
Jimgreen8 On May 2, 2012, at 3:33, borz_off@cs.msu.su wrote: > Edit report at > https://pear.php.net/bugs/bug.php?id=19403&edit=1 > > ID: 19403 > Updated by: borz_off@cs.msu.su > Reported By: loki_angel at mail dot ru > Summary: getValue() returns wrong technical field > Status: Open > -Type: Bug > +Type: Feature/Change Request > Package: HTML_QuickForm2 > Package Version: 2.0.0beta2 > PHP Version: 5.4.1 > Roadmap Versions: > New Comment: > > -Type: Bug > +Type: Feature/Change Request > It is a feature request rather than a bug report, we didn't promise to > strip these fields. We do similar stuff in Controller::getValue(), > though, so will probably add a means to strip these in > QuickForm2::getValue(), too. > > > Previous Comments: > ------------------------------------------------------------------------ > > [2012-04-28 12:03:47] loki > > Description: > ------------ > getValue() returns wrong technical field > > Test script: > --------------- > <?php > > require_once 'HTML/QuickForm2.php'; > require_once 'HTML/QuickForm2/Renderer.php'; > > $form = new HTML_QuickForm2('elements'); > $form->addElement('hidden', 'test', null); > $form->addElement('submit'); > > $renderer = HTML_QuickForm2_Renderer::factory('default'); > $form->render($renderer); > > var_dump($form->getValue()); > > echo $renderer; > > Expected result: > ---------------- > array > 'test' => string '' (length=0) > > Actual result: > -------------- > array > '_qf__elements' => string '' (length=0) > 'test' => string '' (length=0) > > ------------------------------------------------------------------------ > > > -- > Edit this bug report at > https://pear.php.net/bugs/bug.php?id=19403&edit=1 > > > -- > PEAR Bugs Mailing List (http://pear.php.net/bugs/) > To unsubscribe, visit: http://www.php.net/unsub.php >

« previous php.pear.bugs (#8616) next »