Skip to content
Snippets Groups Projects
Commit d79b0322 authored by Cam Saül's avatar Cam Saül
Browse files

Make sure to check for non-empty seq before using in SQL :in clause :broken_heart:

parent 986420c9
No related branches found
No related tags found
No related merge requests found
......@@ -52,7 +52,8 @@
:table_id id
:visibility_type "normal"
{:order-by [[:position :asc] [:name :asc]]})]
(db/select-field->field :field_id :values FieldValues, :field_id [:in field-ids])))
(when (seq field-ids)
(db/select-field->field :field_id :values FieldValues, :field_id [:in field-ids]))))
(defn pk-field-id
"Return the ID of the primary key `Field` for TABLE."
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment