Issue #2278561 by markusbroman, LanceG: Changed legacy view mode declarations to fix undefined index errors.