Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Country selection not selecting user value #620

Open
klodeckl opened this issue Dec 3, 2024 · 0 comments
Open

Country selection not selecting user value #620

klodeckl opened this issue Dec 3, 2024 · 0 comments

Comments

@klodeckl
Copy link

klodeckl commented Dec 3, 2024

The field for the country does not select the user value anymore (with static_info_tables). The following addition in Country.html fixes the problem:

Change from

				<f:if condition="{countryCode} == '---'">
					<f:then>
						<f:form.select.option additionalAttributes="{disabled: 1}">{countryName}</f:form.select.option>
					</f:then>
					<f:else>
						<f:form.select.option value="{countryCode}">{countryName}</f:form.select.option>
					</f:else>
				</f:if>

To this


				<f:if condition="{countryCode} == '---'">
					<f:then>
						<f:form.select.option additionalAttributes="{disabled: 1}">{countryName}</f:form.select.option>
					</f:then>
					<f:else>
						<f:if condition="{countryCode} == {user.country}">
							<f:then>
								<f:form.select.option value="{countryCode}" selected="1">{countryName}</f:form.select.option>

							</f:then>
							<f:else>
								<f:form.select.option value="{countryCode}">{countryName}</f:form.select.option>
							</f:else>
						</f:if>
					</f:else>
				</f:if>

TYPO3 12.4.23
femanager current main branch
PHP 8.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant