Skip to content

Commit

Permalink
Merge pull request #102 from jweiland-net/prRemoveRequired
Browse files Browse the repository at this point in the history
Remove required fields that prevents users to reserve a ticket for just one persoon
  • Loading branch information
pascal20997 authored Nov 30, 2021
2 parents 6d26b85 + f9d82aa commit cf397ea
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
9 changes: 9 additions & 0 deletions Documentation/Changelog/Index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,15 @@
Changelog
=========

Version 1.2.3
-------------

List of changes ::

2021-11-30 [TASK] Remove required field check for further participants (Commit 1df8d5a by Pascal Rinker)

This list has been created by using `git log $(git describe --tags --abbrev=0)..HEAD --abbrev-commit --pretty='%ad %s (Commit %h by %an)' --date=short`.

Version 1.2.2
-------------

Expand Down
4 changes: 2 additions & 2 deletions Resources/Private/Templates/Checkout/Form.html
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,13 @@ <h2>
<label for="lastName{participantPosition}">
<f:translate key="form.order.participants.lastName" arguments="{0: participantPosition}"/>
</label>
<f:form.textfield id="lastName{participantPosition}" property="participants.{participantPosition}.lastName" required="{jw:ifStringInCommaSeparatedList(haystack: settings.requiredFormFields, needle: 'lastName', then: 'true', else: 'false')}"/>
<f:form.textfield id="lastName{participantPosition}" property="participants.{participantPosition}.lastName"/>
</jw:ifStringInCommaSeparatedList>

<label for="firstName{participantPosition}">
<f:translate key="form.order.participants.firstName" arguments="{0: participantPosition}"/>
</label>
<f:form.textfield id="firstName{participantPosition}" property="participants.{participantPosition}.firstName" required="{jw:ifStringInCommaSeparatedList(haystack: settings.requiredFormFields, needle: 'firstName', then: 'true', else: 'false')}"/>
<f:form.textfield id="firstName{participantPosition}" property="participants.{participantPosition}.firstName"/>
</f:for>
</f:then>
<f:else>
Expand Down
2 changes: 1 addition & 1 deletion ext_emconf.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
'author_email' => 'projects@jweiland.net',
'author_company' => 'jweiland.net',
'state' => 'stable',
'version' => '1.2.2',
'version' => '1.2.3',
'constraints' => [
'depends' => [
'typo3' => '9.5.25-10.4.99',
Expand Down

0 comments on commit cf397ea

Please sign in to comment.