Problem/Motivation
When trying to get transform results of an empty region, and error occurs.
This is fixed with adding new block transform into the region.
Steps to reproduce
- Create new region ("footer" for example)
- Leave the region empty
- Call /?format=json®ion=footer
Proposed resolution
Return an empty array instead
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | transform_api_empty_region.patch | 746 bytes | erik_petra |
Comments
Comment #2
erik_petra commentedI created a patch to fix this issue, however it creates another one.
Once the empty region is fetched and cached, new blocks added to the region don't show up, unless the cache is cleared.
Comment #3
lupusgr3y commentedWe could probably add a cache tag for the regions configuration.
Comment #5
lupusgr3y commented