- Issue created by @thomas.frobieter
- Assigned to Shreya_98
- ๐ฉ๐ชGermany Anybody Porta Westfalica
This needs
- An update hook (to set the values if not yet set individually)
- A schema.yml
- An install config with the correct defaults
No idea why we missed that. My apologies!
- ๐ฉ๐ชGermany Anybody Porta Westfalica
@Shreya_th when can we expect your final solution?
- First commit to issue fork.
- @shreya_th opened merge request.
- Status changed to Needs review
about 1 year ago 12:36pm 10 October 2023 - ๐ฉ๐ชGermany Anybody Porta Westfalica
None of the points in #4 have been addressd, this is just hacky. We'll do it ourselves, thanks.
- Assigned to Grevil
- Status changed to Needs work
about 1 year ago 12:37pm 10 October 2023 - ๐ฉ๐ชGermany Grevil
"ffunction"? ๐
Also, completely wrong approach. - ๐ฉ๐ชGermany Grevil
This issue was introduced back when we did the Photoswipe v5 implementation in โจ [5.x] PhotoSwipe 5 Branch Fixed . We updated the "photoswipe_dynamic_caption" view options through an update hook, but never the global options. Since photoswipe probably uses a default fallback, this issue never occurred, until the caption settings page got created through โจ Add settings for Dynamic Caption submodule Fixed .
- Assigned to Anybody
- Status changed to Needs review
about 1 year ago 1:05pm 10 October 2023 - ๐ฉ๐ชGermany Grevil
Fixed! Please review! Works great, drush cex output after executing the update hook:
~/myprojects/ddev-vscode-drupal/web/modules/custom/photoswipe 3392898-typeโฆperand-types !2 โฏ ddev drush cex --diff 14s 15:01:18 [notice] Differences of the active config to the export directory: diff --git a/tmp/drush_tmp_1696942883_65254b23a4f78/photoswipe_dynamic_caption.settings.yml b/tmp/drush_tmp_1696942883_65254b23b14c5/photoswipe_dynamic_caption.settings.yml index 826e67e..032ceb6 100644 --- a/tmp/drush_tmp_1696942883_65254b23a4f78/photoswipe_dynamic_caption.settings.yml +++ b/tmp/drush_tmp_1696942883_65254b23b14c5/photoswipe_dynamic_caption.settings.yml @@ -1,8 +1,8 @@ _core: default_config_hash: 5Rqs8Z9MdUic8UNbjMlbp-GGT8K1jXt-FGyJhx_RjA4 options: - type: null - mobileLayoutBreakpoint: null - horizontalEdgeThreshold: null - mobileCaptionOverlapRatio: null - verticallyCenterImage: null + type: auto + mobileLayoutBreakpoint: 600 + horizontalEdgeThreshold: 20 + mobileCaptionOverlapRatio: 0.3 + verticallyCenterImage: false
Checking "empty($config->get('options.verticallyCenterImage'))" could be discussable (since it is boolean) but should be fine in my opinion.
- @grevil opened merge request.
- ๐ฉ๐ชGermany Grevil
Alright, tiny adjustment "photoswipe_dynamic_caption_photoswipe_js_options_alter" was incorrectly implemented, and it was possible to clear the settings, which would result in further errors.
Review now pls!
- Issue was unassigned.
- Status changed to RTBC
about 1 year ago 2:33pm 10 October 2023 - ๐ฉ๐ชGermany Anybody Porta Westfalica
LGTM - RTBC once tests go green!
-
Anybody โ
committed fb55b4ee on 5.x authored by
Grevil โ
Issue #3392898 by Grevil, Anybody: TypeError: Unsupported operand types...
-
Anybody โ
committed fb55b4ee on 5.x authored by
Grevil โ
- Status changed to Fixed
about 1 year ago 3:24pm 10 October 2023 Automatically closed - issue fixed for 2 weeks with no activity.