Steps to reproduce:
- Create a graph and pick some item for it. Select a function 'All' for that item. Graph type should be 'Normal' at this point.
- Change graph type, first to 'Stacked', then change it once again to 'Pie'.
Undefined index: calc_fnc [graphs.php:628 ? CView->render() ? include() in include/views/configuration.graph.edit.php:416]