Contributions 1 min read

# Class field rename save error

One by one, we're lowering the number of bugs in Pimcore. Dino, our Pimcore developers, stays true to this mission and this is just one of countless of his pull requests. Check out how he got the idea for this one.

Last updated on 20 January, 2022

## Key takeaways

1. Renaming a Pimcore class field only by letter case, for example from test to Test, caused an error when saving the class.
2. The fix adds an extra check when testing whether a key already exists in the array of existing fields.
3. The accepted pull request removes this bug from Pimcore and is one of many fixes contributed by Factory developer Dino.

## **What was the issue?**

When you create a class with a field named ‘test’ and then change the field name to ‘Test’ and save the class an error would appear.

## **How did you solve it?**

An additional check was added when checking if a key exists inside an array of existing fields.

## **Why is this fix important?**

Now we have one less bug in Pimcore.

## **Are you planning on developing a new Pimcore feature?**

There are always some ideas for improving Pimcore.

And if you want to check out this [pull request](https://github.com/pimcore/pimcore/pull/11055), just follow the link!

## Related

[Contributions **Fixing export functionality when exporting zero** Read more about the latest pull request we've made regarding the development of Pimcore platform! Our Pimconaut, Tomislav, made sure that users can now export to XLIFF any… 1 min read](https://factory.dev/pimcore-knowledge-base/contributions/fixing-export-functionality) [Contributions **Table data type not using the table config fix** We've discovered a new bug - and now it's fixed! Check out how Dino, our Pimcore developer, fixed this issue and made sure that Table data types work… 1 min read](https://factory.dev/pimcore-knowledge-base/contributions/table-data-type-fix) [Contributions **Fixing the invisible field inside block element** Another Pimcore fix is coming straight from Factory! Our Pimcore developer, Dino, recently fixed the issue related to invisible fields inside block elements. Visit us and read more… 1 min read](https://factory.dev/pimcore-knowledge-base/contributions/fixing-the-invisible-field)

---

Source: https://factory.dev/pimcore-knowledge-base/contributions/class-field-rename-save-error
