- Issue created by @lance lancelot
- πΊπΈUnited States redeight
So, I believe the issue is that StylePluginBase->render() doesn't take any parameters, but StyledGoogleMapsStyle->render is defined as
public function render($results = [])
and nothing passes anything to that $results. Adding$results = $this->view->result;
as the first line of StyledGoogleMapsStyle->render suddenly fixes the issue. Which makes sense. The render function has access to the result directly from itself, no reason to pass in another array entirely. - πΊπΈUnited States redeight
Is there something else that was supposed to populate that call to render with the $results it was expecting? Did Drupal change something so it no longer does that?
- Merge request !3Render function empty even though pre_render has locations β (Closed) created by redeight
-
a.dmitriiev β
committed 12d32837 on 8.x-2.x
Issue #3439676: render function keeps empty: This map has 0 points
-
a.dmitriiev β
committed 12d32837 on 8.x-2.x
- π©πͺGermany a.dmitriiev
To be honest, I am shocked myself. I have no idea how it was working before like that :) Thank you for reporting this.
- Status changed to Fixed
6 months ago 6:39am 26 May 2024 Automatically closed - issue fixed for 2 weeks with no activity.