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

[Data Objects] Mandatory fields in block type within an object brick are not being validated #4755

Open
choppe3766 opened this issue Jul 23, 2019 · 4 comments

Comments

@choppe3766
Copy link

commented Jul 23, 2019

Bug Report

Expected behavior

on publish an existing version all mandatory fields in all added objects (e.g. object bricks in blocks) should be validated and if the validation fails, an error message should be displayed and the object is not published

Actual behavior

on publishing an exiting version of a data object, the mandatory fields in the added object bricks in a block element will not verified and the "incorrect" object is published.

Steps to reproduce

  • create an object brick with a mandatory field
  • create a class with a block element, which contains the object brick
  • add a data object an fill out all mandatory fields in the object brick, save and publish
  • clear the at least one mandatory field in the object brick, save only as new version
  • go to the versions tab in the data object and publish the latest version
  • the data object with the empty mandatory field in the object brick is published
@brusch

This comment has been minimized.

Copy link
Member

commented Jul 23, 2019

Object-Bricks in Block Data-Type are not supported.
image

@choppe3766

This comment has been minimized.

Copy link
Author

commented Jul 23, 2019

Sorry, my fault:

  • create a class with a object brick element inside

Bildschirmfoto 2019-07-23 um 19 22 32

  • create a object brick with a block element and at least one mandatory field and attach the object brick to the associated class field

Bildschirmfoto 2019-07-23 um 19 16 00

We're using pimcore 5.8.1

@brusch brusch changed the title Bug on publish data objects with object bricks in blocks [Data Objects] Mandatory fields in block type within an object brick are not being validated Jul 24, 2019

@brusch brusch added the Bug label Jul 24, 2019

@weisswurstkanone

This comment has been minimized.

Copy link
Contributor

commented Aug 1, 2019

Unable to reproduce using the latest version.
Can you verify this on the demo instance please?

@weisswurstkanone

This comment has been minimized.

Copy link
Contributor

commented Aug 12, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.