concrete5/concrete5 — Issue #326: Area::setBlockLimit() restrictions are not taken into affect until page refresh.
Author: bhcarpenter
Created: 2011-12-07 20:25:48+00:00
State: open

Steps to duplicate:
1. In one of your page templates, set the block limit of an area to 1 using [the setBlockLimit() function](http://www.concrete5.org/documentation/developers/pages/areas/)
2. Enter edit mode on a page that uses the area you edited above.
3. Make sure that the area currently has no blocks.
4. Reload the page.
5. Add a block.
6. You are able to continue adding blocks on that area until the next page refresh.

Similarly, if you delete blocks from an area until it has less than the number of blocks specified by setBlockLimit, you still will not be able to add any new blocks until the page is refreshed.