소스 검색

Fixed bug with publishing analyses. local source had required field

Stephen Ficklin 7 년 전
부모
커밋
0c11e707fe
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      tripal_chado/includes/TripalFields/local__source_data/local__source_data_widget.inc

+ 1 - 1
tripal_chado/includes/TripalFields/local__source_data/local__source_data_widget.inc

@@ -70,7 +70,7 @@ class local__source_data_widget extends ChadoFieldWidget {
       '#title' => 'Data Source Name',
       '#description' => 'The name of the source where data was obtained for this analysis.',
       '#default_value' => $sourcename,
-      '#required' => TRUE,
+      '#required' => $element['#required'],
     );
     $widget['source_data']['sourceversion'] = array(
       '#type' => 'textfield',