Skip to content

Conversation

@uldisn
Copy link
Contributor

@uldisn uldisn commented Sep 4, 2023

No description provided.

anothersoftware-lv and others added 30 commits August 10, 2023 00:59
# Conflicts:
#	actions/D3EditableAction.php
#	messages/ru/crud.php
#	yii2/LayoutController.php
#	yii2/web/D3SystemWidget.php
anothersoftware-lv and others added 7 commits October 9, 2024 10:40
Introduce a helper class to standardize float data attributes in models. The class ensures attributes are set to 0 or converted into valid floats, enhancing data integrity during model loading.
Introduce `normalizeIntegerDataAttributes` to ensure specified attributes are integers, defaulting to 0 if undefined. This improves data consistency by validating and converting numeric values accordingly.
Updated `normalizeFloatDataAttributes` and `normalizeIntegerDataAttributes` to handle nullable `attributes` parameters. This ensures robust handling of cases where no attributes are provided, improving method reliability and reducing unnecessary processing.
Introduce a custom validator extending Yii2's TrimValidator to allow conditional trimming of only string values. This enhances flexibility when handling mixed data types while maintaining compatibility with the base functionality.
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