Project

General

Profile

Actions

Bug #71323

closed

Story #69617: FormEngine bugs

Flexform: Removing section element with empty required field prevents form saving

Added by Christian Weiske about 9 years ago. Updated about 7 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
FormEngine aka TCEforms
Target version:
Start date:
2015-11-04
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
7
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

I've got a flexform section which I can add elements to. One of the fields inside the section has a required attribute set.

When adding the element to the section and focusing the input field, it gets marked with a red exclamation mark. Also the "General" form tab gets marked with an exclamation mark.
I cannot save the form until I fill out the field.

Now when I remove the section element, I still cannot save the form - even though the reason for the validation failure has gone.

Happens with TYPO3 7.5, flux 7.2.3 and fluidcontent 4.3.3

Minimal fluidcontent example:

<?xml version="1.0" encoding="utf-8"?>
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" 
     xmlns:f="http://typo3.org/ns/TYPO3/Fluid/ViewHelpers" 
     xmlns:flux="http://typo3.org/ns/FluidTYPO3/Flux/ViewHelpers">
  <f:layout name="Content" />

  <f:section name="Configuration">
    <flux:form id="test" options="{group: 'FCE'}">
      <flux:form.section name="settings.links" label="Links">
        <flux:form.object name="link" label="Link">
          <flux:field.input name="url" label="URL" required="1"/>
        </flux:form.object>
      </flux:form.section>
    </flux:form>
  </f:section>
</html>


Files


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Task #71607: FormEngine: Flex section deletionClosed2015-11-16

Actions
Actions

Also available in: Atom PDF