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

#6160: Sanitize Number fields on sql:sanitize #6163

Open
wants to merge 2 commits into
base: 12.x
Choose a base branch
from

Conversation

vasike
Copy link

@vasike vasike commented Nov 14, 2024

Update SanitizeUserFieldsCommands.php

Update SanitizeUserFieldsCommands.php
Comment on lines 71 to 72
$value_array = $field_type_class::generateSampleValue($def);
$value = $value_array['value'];
Copy link
Member

Choose a reason for hiding this comment

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

This should generate a value that respects max/min and such. No need to hard code a value.

@weitzman
Copy link
Member

weitzman commented Jan 4, 2025

Lets please work on the13.x branch, and then backport if desired.

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.

2 participants