Bug #1502
Mandatory check fails if value="0"
Status: | Closed | Start date: | 2008-09-12 | |
---|---|---|---|---|
Priority: | Must have | Due date: | ||
Assigned To: | Andy Grunwald | % Done: | 0% |
|
Category: | Frontend Plugin | |||
Target version: | Powermail 1.5.6 | |||
TYPO3 Version: | Has patch: | |||
PHP Version: |
Description
Hi Alex,
I did a form with some select and radio button fieleds. All of them are mandatory fields.
For example:
field:
radio-button
values:
no | 0
yes | 1
Now I opened the form in the FE and chose "yes". All worked fine.
But if I choose "no", which has the value "0", the confirmation page told me that the field must be filled.
That happens on select and radio button fields, where I selected the mandatory check.
Could you check this please?
Related issues
Associated revisions
[Bug 1502] Update the DK localization
History
#1 Updated by Stefan Mayer over 6 years ago
I made a simple fix in class.tx_powermail_mandatory.php row 110:
if ((!trim($this->sessionfields['uid'.$row['uid']]) || !isset($this->sessionfields['uid'.$row['uid']])) && $this->sessionfields['uid'.$row['uid']] != 0)
#2 Updated by Titus Nachbauer [Netcreators] over 6 years ago
Very closely related, so I won't file a new bugreport:
When using a siple two option radiobutton, the mandatory check seems to fail in any case. The form acts as if no value has been filled in.
#3 Updated by Andy Grunwald almost 5 years ago
- Target version set to Powermail 1.5.6
#4 Updated by Andy Grunwald almost 5 years ago
- Status changed from New to Closed
- Assigned To changed from Alex Kellner to Andy Grunwald
This issue was fixed in #5527 (current trunk)