- Issue created by @Grevil
- 🇩🇪Germany Anybody Porta Westfalica
@Grevil: What's the default value for mainClass?
- 🇩🇪Germany Anybody Porta Westfalica
@Grevil: All clear now, I looked into https://github.com/dimsemenov/PhotoSwipe/blob/2d23b36c99411d2dc45bf66104... and added the infos above!
- 🇩🇪Germany Grevil
Default should be NULL, as it already is set as the default in this module (so no need to change the default value).
See https://photoswipe.com/options/#mainclass, where it is set as "undefined". - @anybody opened merge request.
- Status changed to Needs work
about 1 year ago 2:05pm 16 October 2023 - 🇩🇪Germany lrwebks Porta Westfalica
Working on this now - should be quick!
- Status changed to Needs review
about 1 year ago 2:25pm 16 October 2023 - 🇩🇪Germany lrwebks Porta Westfalica
Done already! Tiniest issue I've ever worked on, but still important. Please review!
- Issue was unassigned.
- Status changed to RTBC
about 1 year ago 2:31pm 16 October 2023 - 🇩🇪Germany Anybody Porta Westfalica
Thanks. That's indeed all, as the value is already part of the existing schema and config.
- Status changed to Needs review
about 1 year ago 3:34pm 16 October 2023 - 🇩🇪Germany lrwebks Porta Westfalica
Whoops, forgot to update the settings test, does this need another review? Putting it to "needs review" anyway so you can take notice!
- Status changed to RTBC
about 1 year ago 3:40pm 16 October 2023 - Assigned to lrwebks
- Status changed to Needs work
about 1 year ago 3:11pm 23 October 2023 - 🇩🇪Germany Grevil
Is this already tested? Since the default value on installation for "mainClass" is NULL instead of an empty string.
So after installation, as soon as we go to the settings page and change anything, except "mainClass", the current implementation will override the mainClass value from NULL to an empty string. If the photoswipe js library simply handles an empty string the same as NULL everything is fine, and we can set the default value from mainClass to an empty string
''
. But it might not, this should be checked first! - 🇩🇪Germany Anybody Porta Westfalica
we can set the default value from mainClass to an empty string ''
I think this should be prefered, as the form will also set
''
.If it doesn't work, we'd have to cast to NULL on save. You could also just look into the PS JavaScript code, how it is handled and if it leads to different results.
- 🇩🇪Germany Grevil
I think this should be prefered, as the form will also set ''.
Yep, this is what I meant!
- 🇩🇪Germany lrwebks Porta Westfalica
So, should I change the default value to an empty string? Would be a quick fix and then we're done here...
- Status changed to Needs review
about 1 year ago 11:17am 3 November 2023 - 🇩🇪Germany lrwebks Porta Westfalica
Well, indeed a quick fix! Done.
- 🇩🇪Germany lrwebks Porta Westfalica
@Anybody please review if you find the time, thanks!
- Status changed to RTBC
about 1 year ago 9:47am 10 November 2023 -
Anybody →
committed 8d3da984 on 5.x
Issue #3393158 by LRWebks, Anybody, Grevil: Create a photoswipe setting...
-
Anybody →
committed 8d3da984 on 5.x
- Status changed to Fixed
about 1 year ago 10:03am 10 November 2023 - Issue was unassigned.
Automatically closed - issue fixed for 2 weeks with no activity.
- 🇩🇪Germany lrwebks Porta Westfalica
LRWebks → changed the visibility of the branch 3393158-create-a-photosipe to hidden.
- 🇩🇪Germany lrwebks Porta Westfalica
LRWebks → changed the visibility of the branch 3393158-create-a-photosipe to active.