fixing bug

when view edit was turned off for a field AND define valid values was
set AND formatFieldWithFunction was on - bug was present