mirror of
https://github.com/discourse/discourse.git
synced 2025-04-17 12:19:05 +08:00
FIX: do not update tag name on /tags/intersection
This commit is contained in:
parent
1cee8a86f6
commit
6ea9f5c9c5
app/assets/javascripts/discourse/routes
test/javascripts/acceptance
@ -109,7 +109,7 @@ export default Discourse.Route.extend({
|
|||||||
params,
|
params,
|
||||||
{}
|
{}
|
||||||
).then(list => {
|
).then(list => {
|
||||||
if (list.topic_list.tags) {
|
if (list.topic_list.tags && list.topic_list.tags.length === 1) {
|
||||||
tag.set("id", list.topic_list.tags[0].name); // Update name of tag (case might be different)
|
tag.set("id", list.topic_list.tags[0].name); // Update name of tag (case might be different)
|
||||||
}
|
}
|
||||||
controller.setProperties({
|
controller.setProperties({
|
||||||
|
@ -19,8 +19,8 @@ acceptance("Tags intersection", {
|
|||||||
draft_key: "new_topic",
|
draft_key: "new_topic",
|
||||||
topics: [{ id: 16, posters: [] }],
|
topics: [{ id: 16, posters: [] }],
|
||||||
tags: [
|
tags: [
|
||||||
{ id: 1, name: "first", topic_count: 1 },
|
{ id: 1, name: "second", topic_count: 1 },
|
||||||
{ id: 2, name: "second", topic_count: 1 }
|
{ id: 2, name: "first", topic_count: 1 }
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user