- Issue created by @karanpagare
- Status changed to Needs work
26 days ago 12:06pm 29 May 2025 - First commit to issue fork.
- Merge request !398Issue #3479848 by jatingupta40, pdureau: Undefined array key issue → (Closed) created by JatinGupta40
- 🇮🇳India JatinGupta40
@pdureau I have opened the MR.
Also attaching the updated patch file. - 🇫🇷France duaelfr Montpellier, France
Since your first patch, 🐛 TypeError: Argument 1 passed to Drupal\ui_patterns_views\Plugin\views\row\Pattern::isFieldVisible() Fixed has been committed to prevent TypeError in case of a non-existent field.
I am not able to reproduce your warning but that's true that!isset
can throw it. So, I decided to convert this condition to useempty
instead.@jatingupta40 #8: I don't think this patch (or your MR) should be introduced in the module because
!empty($field)
is already managed by the condition line 44!empty($field_output)
is already managed within theisFieldVisible()
method which will also preserve the choice about empty values in the configuration
I'll mark this issue as Fixed. Feel free to reopen if needed.