소스 검색

Should not require a description for table fields in chado_node_gerneate_tokens

Stephen Ficklin 9 년 전
부모
커밋
6893992f63
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      tripal_core/api/tripal_core.chado_nodes.title_and_path.inc

+ 1 - 1
tripal_core/api/tripal_core.chado_nodes.title_and_path.inc

@@ -1261,7 +1261,7 @@ function chado_node_generate_tokens($base_table, $token_prefix = FALSE, $locatio
       'location' => $location
     );
 
-    if (preg_match('/TODO/',$field_details['description'])) {
+    if (!array_key_exists('description', $field_details) or preg_match('/TODO/',$field_details['description'])) {
       $tokens[$token]['description'] = 'The '.$field_name.' field of the '.$base_table.' table.';
     }
   }