FC-2591 var scoping and applying explicit arguments scope to variables
avoid calling getData() twice in afterSave()