correct enum auto with function (refs #4135)
Merge pull request #932 from Eric-Brison/3.1-I4139

correct enum auto with function (closes #4135)