Fix 'Undefined variable' on project view form.