- Issue created by @michal_liszka
- 🇵🇱Poland michal_liszka
michal_liszka → changed the visibility of the branch 8.x-1.x to hidden.
- Merge request !15fix: foreach() argument must be of type array|object, string given. → (Open) created by michal_liszka
After installing the module andsetup first configuration, if we do not add screenshots, we catch the following error:
Warning: foreach() argument must be of type array|object, string given in Drupal\advanced_pwa\Form\ManifestConfigurationForm->submitForm() (line 446 of /var/www/html/drupal/modules/contrib/advanced_pwa/src/Form/ManifestConfigurationForm.php)
1. Install module.
2. Go to `/admin/config/system/advanced-pwa`.
3. Fill required fields and save configuration.
4. Get an error.
Change validation of `uploaded_screenshots` from `->hasValue()`, to `->getValue()` and `empty()`.
Active
1.71
Code
michal_liszka → changed the visibility of the branch 8.x-1.x to hidden.