Skip to content
Snippets Groups Projects
Unverified Commit a33eaf73 authored by Nemanja Glumac's avatar Nemanja Glumac Committed by GitHub
Browse files

Fix a question suffix created when deep copying a dashboard with question (#33081)

Fixes #33080
parent 4c73a88b
No related branches found
No related tags found
No related merge requests found
......@@ -277,7 +277,7 @@
(api.card/create-card!
(cond-> (assoc card :collection_id dest-coll-id)
same-collection?
(update :name #(str % " -- " (tru "Duplicate"))))
(update :name #(str % " - " (tru "Duplicate"))))
;; creating cards from a transaction. wait until tx complete to signal event
true))))
{:copied {}
......
......@@ -1123,10 +1123,10 @@
;; original 3 plust 3 duplicates
(is (= 6 (count cards-in-coll)) "Not all cards were copied")
(is (= (into #{} (comp (map :name)
(mapcat (fn [n] [n (str n " -- Duplicate")])))
(mapcat (fn [n] [n (str n " - Duplicate")])))
[total-card avg-card card])
(set (map :name cards-in-coll)))
"Cards should have \"-- Duplicate\" appended"))))))))
"Cards should have \"- Duplicate\" appended"))))))))
(defn- ordered-cards-by-position
"Returns dashcards for a dashboard ordered by their position instead of creation like [[dashboard/ordered-cards]] does."
......
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