Skip to content
Snippets Groups Projects
Commit ed4c40e8 authored by Simon Belak's avatar Simon Belak
Browse files

Fix a bit too eager use of u/get-id

parent a3bf518d
No related branches found
No related tags found
No related merge requests found
......@@ -437,9 +437,10 @@
If there are multiple FKs pointing to the same table, multiple entries will
be returned."
[table]
(for [{:keys [id target]} (db/select Field
:table_id (u/get-id table)
:fk_target_field_id [:not= nil])
(for [{:keys [id target]} (field/with-targets
(db/select Field
:table_id (u/get-id table)
:fk_target_field_id [:not= nil]))
:when (some-> target mi/can-read?)]
(-> target field/table (assoc :link id))))
......
......@@ -91,7 +91,7 @@
(when-let [target (filter-for-card card field)]
{:parameter_id filter-id
:target target
:card_id (u/get-id card)})))
:card_id (:id card)})))
not-empty)]
(cond
(nil? (:card dashcard)) dashcard
......
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