Project

General

Profile

Actions

Bug #81869

closed

Form extension doesn’t allow overriding boolean values

Added by Rainer Becker over 7 years ago. Updated about 7 years ago.

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.


Related issues 1 (0 open1 closed)

Is duplicate of TYPO3 Core - Bug #82569: EXT:form setting attachUploads to false does not workClosed2017-09-27

Actions
Actions #1

Updated by RVVN no-lastname-given over 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.

Actions #2

Updated by Björn Jacob about 7 years ago

  • Sprint Focus set to Remote Sprint
Actions #3

Updated by Gerrit Code Review about 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

Actions #4

Updated by Łukasz Uznański about 7 years ago

  • Sprint Focus changed from Remote Sprint to On Location Sprint
Actions #5

Updated by Susanne Moog about 7 years ago

  • Is duplicate of Bug #82569: EXT:form setting attachUploads to false does not work added
Actions #6

Updated by Susanne Moog about 7 years ago

  • Status changed from Under Review to Closed

is fixed by #82569

Actions

Also available in: Atom PDF