[Bug]: labels get lowercased
dkarlovi opened this issue ยท 5 comments
dkarlovi commented
Expected behavior
The labeled field is exported exactly like the label.
Actual behavior
The labeled field is lowercased.
Steps to reproduce
- Create a field like so
-
isOperator: true
attributes:
label: Image
type: operator
class: assets
children:
-
isOperator: false
attributes:
label: 'Category Image'
type: value
class: DefaultValue
attribute: image
dataType: image
children: { }
- create a query like so
getProductCategoryListing {edges {node {id, Image{id, fullpath, url}}}}
- get error
GraphQL query failed: Cannot query field "Image" on type "object_ProductCategory". Did you mean "image" or "tags"?
- try with lowercase label
getProductCategoryListing {edges {node {id, image{id, fullpath, url}}}}
- it works like that
github-actions commented
Thanks a lot for reporting the issue. We did not consider the issue as "Pimcore:Priority", "Pimcore:ToDo" or "Pimcore:Backlog", so we're not going to work on that anytime soon. Please create a pull request to fix the issue if this is a bug report. We'll then review it as quickly as possible. If you're interested in contributing a feature, please contact us first here before creating a pull request. We'll then decide whether we'd accept it or not. Thanks for your understanding.