Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: Boolean Attributes at Metaobjects doenst work after ex-/import #217

Open
admbzts opened this issue Dec 1, 2023 · 1 comment
Open
Assignees
Labels
bug Something isn't working

Comments

@admbzts
Copy link
Contributor

admbzts commented Dec 1, 2023

We use a lot of metaobjects with boolean Attributes and if i export a metaobj with a boolean attribute and import it on an other metaobj_manager a boolean Attribute seems like a input type text on the instance of the metaobj. The same behavior with repository_manager. After saving the metaobj definition the boolean fields works correct.

boolean_attributes_metaobj_export

On SS the left part is before a save, and the right part after a save.

@cmeier76
Copy link
Member

cmeier76 commented Dec 1, 2023

We work around this in automated imports by

LOGGER.log(logging.INFO,
               f"resync meta attributes")
    self.unibe.content.synchronizeObjAttrs()

This may be time consuming depending on object and client model and is the same as saving in ZMI at tab system config > meta attributes.

@zmsdev zmsdev added the bug Something isn't working label Jan 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

3 participants