depage / depage-forms

depage-forms is PHP library for HTML form generation with focus on usability. It is part of the upcoming version of depage-cms, but it also works as a standalone library. By abstracting HTML, browser flaws (duplicate form submissions) and form validation, it provides a comfortable way to obtain reliable and validated data from users.
http://docs.depage.net/depage-forms/
22 stars 10 forks source link

Get a Fatal Error when pushing the submit button. #2

Closed bwl21 closed 11 years ago

bwl21 commented 11 years ago

( ! ) Fatal error: Call to undefined method clearValue in depage-forms/abstracts/element.php on line 99 Call Stack

Time Memory Function Location

1 0.0003 248752 {main}( ) ../elements.php:0 2 0.0091 1097904 depage\htmlform\htmlform->clearSession( ) ../elements.php:190 3 0.0091 1100440 clearValue ( ) ../htmlform.php:728 4 0.0091 1100624 depage\htmlform\abstracts\container->call( ) ../htmlform.php:728 5 0.0091 1100696 depage\htmlform\abstracts\element->call( ) ../container.php:78 6 0.0091 1100896 trigger_error ( ) ../element.php:99

jonasjonas commented 11 years ago

This seems to be a bug in the field set. I am working on a fix.

bwl21 commented 11 years ago

It is fixed in the pull request https://github.com/depage/depage-forms/pull/1

Am 10.09.2013 um 09:53 schrieb Frank Hellenkamp notifications@github.com:

This seems to be a bug in the field set. I am working on a fix.

— Reply to this email directly or view it on GitHub.

jonasjonas commented 11 years ago

Yes, but it's only a workaround.

A clearValue() for composite fieldsets (like creditcard) should clear all child elements.

I will merge your pull request with the classes, while adjusting the tests accordingly and will add a separate commit for this error.

jonasjonas commented 11 years ago

fixed.