Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Emmanuel QUEVILLON
BIGSdb
Commits
ede3f8e6
Commit
ede3f8e6
authored
Jan 08, 2015
by
Keith Jolley
Browse files
Use Datastore utility methods instead of direct SQL.
parent
5e4e5395
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/BIGSdb/CurateIsolateAddPage.pm
View file @
ede3f8e6
...
...
@@ -405,10 +405,7 @@ sub print_provenance_form_elements {
}
my
$aliases
;
if
(
$options
->
{'
update
'}
)
{
#TODO Use Datastore::get_isolate_aliases instead
$aliases
=
$self
->
{'
datastore
'}
->
run_list_query
(
"
SELECT alias FROM isolate_aliases WHERE isolate_id=? ORDER BY alias
",
$q
->
param
('
id
')
);
$aliases
=
$self
->
{'
datastore
'}
->
get_isolate_aliases
(
$q
->
param
('
id
')
);
}
else
{
$aliases
=
[]
;
}
...
...
@@ -418,10 +415,7 @@ sub print_provenance_form_elements {
say
"
</li>
";
my
$pubmed
;
if
(
$options
->
{'
update
'}
)
{
#TODO Use Datastore::get_isolate_refs instead
$pubmed
=
$self
->
{'
datastore
'}
->
run_list_query
(
"
SELECT pubmed_id FROM refs WHERE isolate_id=? ORDER BY pubmed_id
",
$q
->
param
('
id
')
);
$pubmed
=
$self
->
{'
datastore
'}
->
get_isolate_refs
(
$q
->
param
('
id
')
);
}
else
{
$pubmed
=
[]
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment