Просмотр исходного кода

Issue #1205 bulk loader cannot delete first record

dsenalik 3 лет назад
Родитель
Сommit
343fc870d4
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      tripal_bulk_loader/includes/tripal_bulk_loader.admin.templates.inc

+ 1 - 1
tripal_bulk_loader/includes/tripal_bulk_loader.admin.templates.inc

@@ -1306,7 +1306,7 @@ function tripal_bulk_loader_delete_template_record_form($form, &$form_state) {
     tripal_set_message('Unable to determine the template_id from the path.', TRIPAL_ERROR);
     tripal_set_message('Unable to determine the template_id from the path.', TRIPAL_ERROR);
     return $form;
     return $form;
   }
   }
-  elseif (!$record_id) {
+  elseif (!isset($record_id)) {
     tripal_set_message('Unable to determine the record_id from the path.', TRIPAL_ERROR);
     tripal_set_message('Unable to determine the record_id from the path.', TRIPAL_ERROR);
     return $form;
     return $form;
   }
   }