|
@@ -158,6 +158,8 @@ function tripal_feature_gff3_load_form_validate($form, &$form_state) {
|
|
|
form_set_error('gff_file', t("Cannot find the file on the system. Check that the file exists or that the web server has permissions to read the file."));
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+
|
|
|
if (($add_only AND ($update OR $refresh OR $remove)) OR
|
|
|
($update AND ($add_only OR $refresh OR $remove)) OR
|
|
|
($refresh AND ($update OR $add_only OR $remove)) OR
|
|
@@ -237,6 +239,7 @@ function tripal_feature_load_gff3($gff_file, $organism_id, $analysis_id, $add_on
|
|
|
|
|
|
|
|
|
|
|
|
+
|
|
|
$sql = "SELECT * FROM cv WHERE name = '%s'";
|
|
|
$cv = db_fetch_object(db_query($sql, 'sequence'));
|
|
|
if (!$cv) {
|
|
@@ -245,6 +248,7 @@ function tripal_feature_load_gff3($gff_file, $organism_id, $analysis_id, $add_on
|
|
|
}
|
|
|
|
|
|
|
|
|
+
|
|
|
$sql = "SELECT * FROM organism WHERE organism_id = %d";
|
|
|
$organism = db_fetch_object(db_query($sql, $organism_id));
|
|
|
|
|
@@ -908,6 +912,7 @@ function tripal_feature_load_gff3_alias($feature, $aliases) {
|
|
|
|
|
|
|
|
|
|
|
|
+
|
|
|
$pubsql = "SELECT * FROM {pub} WHERE uniquename = 'null'";
|
|
|
$pub = db_fetch_object(db_query($pubsql));
|
|
|
if (!$pub) {
|