Actions
Bug #81869
closedForm extension doesn’t allow overriding boolean values
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Form Framework
Target version:
-
Start date:
2017-07-14
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
8
PHP Version:
7.0
Tags:
Complexity:
Is Regression:
Sprint Focus:
On Location Sprint
Description
I tried to set a boolean option (EmailFinisher -> attachUploads) to false. It seems that overriding an option with boolean true as default can’t be overridden with a false value.
Updated by RVVN no-lastname-given about 7 years ago
Hi,
I have the same problem. It seems to come from the following test in AbstracFinisher parseOption function (line 210) :
210 if (empty($optionValue)) { 211 if ($defaultValue !== null) { 212 $optionValue = $defaultValue; 213 } 214 }
false is considered empty. The value 0 cannot be used either because it's an empty value too.
Updated by Gerrit Code Review almost 7 years ago
- Status changed from New to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/54066
Updated by Łukasz Uznański almost 7 years ago
- Sprint Focus changed from Remote Sprint to On Location Sprint
Updated by Susanne Moog almost 7 years ago
- Is duplicate of Bug #82569: EXT:form setting attachUploads to false does not work added
Updated by Susanne Moog almost 7 years ago
- Status changed from Under Review to Closed
is fixed by #82569
Actions