Skip to content

Conversation

@indykoning
Copy link
Member

No description provided.

@claudio-ferraro claudio-ferraro self-requested a review July 31, 2025 09:44
@claudio-ferraro claudio-ferraro requested a review from Copilot July 31, 2025 09:45
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR modifies a SQL query in the CategoryExist plugin to exclude empty values when checking for category URL keys. The change adds a condition to filter out records where the EAV (Entity-Attribute-Value) value is an empty string.

  • Adds a filter condition to exclude empty URL key values in the category existence check

FROM eav_entity_type
WHERE entity_type_code = 'catalog_category'
)
AND eav.`value` != ''
Copy link

Copilot AI Jul 31, 2025

Choose a reason for hiding this comment

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

Consider using IS NOT NULL AND TRIM(eav.value) != '' instead of just != '' to handle whitespace-only values and null values more comprehensively.

Suggested change
AND eav.`value` != ''
AND eav.`value` IS NOT NULL AND TRIM(eav.`value`) != ''

Copilot uses AI. Check for mistakes.
@pimruiter pimruiter merged commit cde0863 into master Aug 1, 2025
2 checks passed
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.

4 participants