diff --git a/src/metabase/api/dashboard.clj b/src/metabase/api/dashboard.clj index 01e0cb0e95129f7ce973980718f687075c67887d..be1a7698a2246809769e55382357fdfb3f707c8e 100644 --- a/src/metabase/api/dashboard.clj +++ b/src/metabase/api/dashboard.clj @@ -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 {} diff --git a/test/metabase/api/dashboard_test.clj b/test/metabase/api/dashboard_test.clj index 0f18871fd38d3c76359786b898c2020ed84c50c5..9236716e6cfdffa3890bec4615d047c593af2eb1 100644 --- a/test/metabase/api/dashboard_test.clj +++ b/test/metabase/api/dashboard_test.clj @@ -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."