Explorar el Código

BUG: Project relationship type drop-down always contained property types; FIXED: let the chado node api generate the options rather then passing in the property types :p

Lacey Sanderson hace 10 años
padre
commit
2591a4cf6d
Se han modificado 1 ficheros con 1 adiciones y 2 borrados
  1. 1 2
      tripal_project/includes/tripal_project.chado_node.inc

+ 1 - 2
tripal_project/includes/tripal_project.chado_node.inc

@@ -179,8 +179,7 @@ function chado_project_form(&$node, $form_state) {
     'cv_id' => $cv_id,                              // the cv.cv_id of the cv governing example_relationship.type_id
     'cv_id' => $cv_id,                              // the cv.cv_id of the cv governing example_relationship.type_id
     'base_name_field' => 'name',                    // the base table field you want to be used as the name
     'base_name_field' => 'name',                    // the base table field you want to be used as the name
     'subject_field_name' => 'subject_project_id',
     'subject_field_name' => 'subject_project_id',
-    'object_field_name' => 'object_project_id',
-    'select_options' => $select_options
+    'object_field_name' => 'object_project_id'
   );
   );
   // Adds the form elements to your current form
   // Adds the form elements to your current form
   chado_add_node_form_relationships($form, $form_state, $details);
   chado_add_node_form_relationships($form, $form_state, $details);