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

Allow value 0 in includeBlankOption - fix issue 1022 #1716

Closed
wants to merge 1 commit into from

Conversation

zonky2
Copy link
Contributor

@zonky2 zonky2 commented Sep 20, 2020

Allow value 0 in includeBlankOption - fix issue #1022

see contao/contao#1022 (comment)

Allow value 0 in includeBlankOption - fix issue #1022

see contao/contao#1022 (comment)
@m-vo
Copy link
Member

m-vo commented Sep 20, 2020

I think we should add some tests for this change to see if it supports all edge cases.

Plus I'd target this against master (4.11). I don't think we should risk breaking 4.4 onwards.

@m-vo
Copy link
Member

m-vo commented Sep 20, 2020

Oh, and I didn't notice this before: You PR should target contao/contao not contao/core-bundle.

@zonky2
Copy link
Contributor Author

zonky2 commented Sep 20, 2020

shit - can I change it online? I did the PR directly on gitlab...

@@ -1181,7 +1181,7 @@ public static function optionSelected($strOption, $varValues)
return '';
}

return (\is_array($varValues) ? \in_array($strOption, $varValues) : $strOption == $varValues) ? ' selected' : '';
return \in_array($strOption, array_map('strval', (array) $varValues), true) ? ' checked' : '';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why did you change selected to checked here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I copy your code...
contao/contao#1022 (comment)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I used your code from contao/contao#1022 (comment) as the basis.
But making a pull request with just a copy of my code doesn’t bring us much further. What we need to do is described here: contao/contao#1022 (comment)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmm something is on the wrong rail here - I'll check it again

@ausi ausi closed this Sep 21, 2020
@ausi
Copy link
Member

ausi commented Sep 24, 2020

Closed in favor of contao/contao#2350

@zonky2
Copy link
Contributor Author

zonky2 commented Aug 29, 2021

I don't really understand why the PR is closed - so far the behaviour is unchanged...

see https://github.com/menatwork/contao-multicolumnwizard-bundle/issues/63 - I would like to close that issue

@stefanheimes @ausi

@ausi
Copy link
Member

ausi commented Aug 29, 2021

I don't really understand why the PR is closed

It was closed in favor of contao/contao#2350

@zonky2
Copy link
Contributor Author

zonky2 commented Aug 29, 2021

entweder stehe ich auf dem Schlauch oder verstehe es nicht - warum ist #2350 geschlossen?!?

das Problem ist bisher nicht gefixt!

@ausi
Copy link
Member

ausi commented Aug 29, 2021

warum ist #2350 geschlossen?!?

See contao/contao#2350 (comment) :

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

You can answer the open questions and address the comments to get it reopened.

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

Successfully merging this pull request may close these issues.

3 participants