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

Fix invalid markup in SelectionGroup selected values #7982

Merged
merged 2 commits into from
Apr 10, 2018

Conversation

wilr
Copy link
Member

@wilr wilr commented Apr 4, 2018

When providing a selected value to a SelectionGroup it resulted in markup - <li1> since $Selected has been changed from a string to a simple boolean. This corrects the default template so that a class is output.

Copy link
Contributor

@robbieaverill robbieaverill left a comment

Choose a reason for hiding this comment

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

LGTM! Minor comment in test

@@ -41,6 +41,33 @@ function testFieldHolder()
$this->assertContains('two view', (string)$listElTwo->div);
}

function testSelectedFieldHolder()
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you add the visibility here?

@wilr
Copy link
Member Author

wilr commented Apr 4, 2018

Added visibility to methods

@tractorcow tractorcow merged commit facaad5 into silverstripe:4.1 Apr 10, 2018
@wilr wilr deleted the pulls/fix-selectiongroup branch April 10, 2018 01:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants