Fixes for enum field
Reverting the if condition in edit.php (changed at 7dad52aab19c4da2ef4c44e1b02114a522847bc3)