Stephen Ficklin 8 år sedan
förälder
incheckning
def63e265e

+ 4 - 4
tripal/includes/TripalField.inc

@@ -13,10 +13,10 @@
  * (e.g. hook_field_info(), hook_field_widget_form(), etc.) to instantiate the
  * appropriate TripalField class.
  *
- * Because of the way Drupal handles callbacks, form validate functions,
- * AJAX callbacks, validate functions and theme functions cannot be part of
- * the implementation of this class.  Those functions should be added to
- * the bottom of the file where the child class is housed.
+ * Because of the way Drupal handles callbacks, AJAX callbacks, and theme
+ * functions cannot be part of the implementation of this class.  Those
+ * functions if needed, should be added to the bottom of the file where the
+ * child class is housed.
  *
  */
 class TripalField {

+ 3 - 2
tripal_chado/includes/fields/chado_linker__relationship.inc

@@ -321,7 +321,7 @@ class chado_linker__relationship extends TripalField {
 
       // If the row is empty then just return, there's nothing to validate.
       if (!$type_name and !$subject_name and !$object_name) {
-        contineu;
+        continue;
       }
 
       // Make sure we have values for all of the fields.
@@ -436,7 +436,8 @@ class chado_linker__relationship extends TripalField {
    */
   public function submit($entity_type, $entity, $field, $instance, $langcode,
       &$items, $form, &$form_state) {
-        $field_name = $field['field_name'];
+
+    $field_name = $field['field_name'];
     $field_type = $field['type'];
     $field_table = $field['settings']['chado_table'];
     $field_column = $field['settings']['chado_column'];