Skip to content

fix(resource-types): load custom attribute values without entity join#1342

Merged
JohnVillalovos merged 1 commit intoLibreBooking:developfrom
labmecanicatec:fix-list-Custom-Attributes
Apr 17, 2026
Merged

fix(resource-types): load custom attribute values without entity join#1342
JohnVillalovos merged 1 commit intoLibreBooking:developfrom
labmecanicatec:fix-list-Custom-Attributes

Conversation

@labmecanicatec
Copy link
Copy Markdown
Collaborator

Remove unnecessary join with custom_attribute_entities in GET_ALL_RESOURCE_TYPES so resource type custom attributes persist after page reload.
Closes: #1341

Remove unnecessary join with custom_attribute_entities in GET_ALL_RESOURCE_TYPES so resource type custom attributes persist after page reload.
Copy link
Copy Markdown
Contributor

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

Fixes missing/persisted display of Resource Type custom attribute values by adjusting the SQL used to load all resource types so that saved custom attribute values are returned after a page reload (Issue #1341).

Changes:

  • Remove the custom_attribute_entities join from the GET_ALL_RESOURCE_TYPES subquery so custom_attribute_values are loaded solely by entity_id + attribute_category.
  • Minor whitespace-only SQL string formatting cleanup in a few other query constants.

Copy link
Copy Markdown
Collaborator

@JohnVillalovos JohnVillalovos left a comment

Choose a reason for hiding this comment

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

Thanks @labmecanicatec

LGTM

@JohnVillalovos JohnVillalovos merged commit f211492 into LibreBooking:develop Apr 17, 2026
20 checks passed
@labmecanicatec labmecanicatec deleted the fix-list-Custom-Attributes branch April 17, 2026 18:08
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.

[Bug] Custom Resource Type attributes are not displaying correctly

3 participants