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

Zoom elevate Galerie: Zoom-Fensterposition speichern nicht möglich #1761

Closed
mpitz opened this issue Jan 31, 2017 · 9 comments
Closed

Zoom elevate Galerie: Zoom-Fensterposition speichern nicht möglich #1761

mpitz opened this issue Jan 31, 2017 · 9 comments
Labels
Milestone

Comments

@mpitz
Copy link

mpitz commented Jan 31, 2017

Die Zoom-Fensterposition lässt sich nicht speichern.
Isotope: 2.4
Contao: 4.3.4

(siehe Screen Punkt 1)
image

@aschempp aschempp added the bug label Feb 8, 2017
@aschempp aschempp added this to the 2.4.1 milestone Feb 8, 2017
@aschempp
Copy link
Member

aschempp commented Feb 8, 2017

Most likely an issue in Contao core as validation for that field was added recently.

@aschempp
Copy link
Member

aschempp commented Feb 8, 2017

/cc @qzminski @leofeyer

@qzminski
Copy link
Member

qzminski commented Feb 8, 2017

I guess you refer to the contao/core#8574 but I don't know how that PR can cause the error.

@aschempp
Copy link
Member

aschempp commented Feb 9, 2017

Well the issue is that the validation is taking place inside the widget, but the widget is used for any other input cases by extension developers (I do that a lot), so it should rather be a save_callback…

@qzminski
Copy link
Member

In fact only the validation of field mandatoriness has changed and that relates only to the values that are provided used in the Contao core (e.g. proportional, left_center). Any extra values should not be validated in terms of mandatoriness.

No idea what could cause the invalid option error though.

@aschempp
Copy link
Member

aschempp commented Feb 10, 2017 via email

@qzminski
Copy link
Member

That widget is called "image size" so in my opinion the validation is totally correct. Even if you are using the same values then it still should be validated that way – I don't see a case where you would like to crop the image center_center and provide only one dimension.

However for the widgets that want to use the same feature but different validation perhaps we could delegate the validation code to a different method than validator() so it can be easily overridden.

@aschempp
Copy link
Member

aschempp commented Feb 10, 2017 via email

@aschempp
Copy link
Member

Fixed in 848bdca

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants