Issue #2112113 by Martin_L: Fixed ajax error.