diff --git a/includes/handlers.inc b/includes/handlers.inc index b1ce1a3..77a4423 100644 --- a/includes/handlers.inc +++ b/includes/handlers.inc @@ -274,9 +274,23 @@ class views_handler extends views_object { return $title; } $title = ($short && isset($this->definition['title short'])) ? $this->definition['title short'] : $this->definition['title']; + if (!isset($this->definition['group'])) { + //debug code for determining what is causing: Undefined index: group in views_handler->ui_name() + $this->gonnasaythis('broken field: ' . $title ' causes Undefined index: group in views_handler->ui_name()'); + //look for the debug output in D7core/saythis.txt + } return t('!group: !title', array('!group' => $this->definition['group'], '!title' => $title)); } - + /** + * debug function, remove this when you're not debugging, clear cache right after putting this in. + * a file will be written called saythis.txt into your drupal core directory (same one that contains MAINTAINERS.txt). + */ + function gonnasaythis($what_im_sayin) { + if ($fp = fopen('saythis.txt', 'a')) { + fwrite($fp, "$what_im_sayin\r\n"); + fclose($fp); + } + } /** * Shortcut to get a handler's raw field value. *