FIX: Use `filters` parameter instead of `filter` for staff action log (#11217)
Fixing this also means that ember takes care of JSON encoding the query parameter
Follow-up to a4441b3984
This commit is contained in:
parent
4f1bb184b1
commit
5be78bb2d9
|
@ -11,10 +11,10 @@ const SiteSetting = EmberObject.extend(Setting, {
|
|||
return;
|
||||
}
|
||||
|
||||
return JSON.stringify({
|
||||
return {
|
||||
subject: setting,
|
||||
action_name: "change_site_setting",
|
||||
});
|
||||
};
|
||||
},
|
||||
});
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<div class="setting-label">
|
||||
<h3>
|
||||
{{#if staffLogFilter}}
|
||||
{{#link-to "adminLogs.staffActionLogs" (query-params filter=staffLogFilter) title=(i18n "admin.settings.history")}}
|
||||
{{#link-to "adminLogs.staffActionLogs" (query-params filters=staffLogFilter) title=(i18n "admin.settings.history")}}
|
||||
{{settingName}}
|
||||
<span class="history-icon">
|
||||
{{d-icon "history"}}
|
||||
|
|
|
@ -47,7 +47,7 @@ acceptance("Admin - Site Settings", function (needs) {
|
|||
|
||||
assert.equal(
|
||||
queryAll(".row.setting .setting-label h3 a").attr("href"),
|
||||
"/admin/logs/staff_action_logs?filter=%7B%22subject%22%3A%22title%22%2C%22action_name%22%3A%22change_site_setting%22%7D",
|
||||
"/admin/logs/staff_action_logs?filters=%7B%22subject%22%3A%22title%22%2C%22action_name%22%3A%22change_site_setting%22%7D",
|
||||
"it links to the staff action log"
|
||||
);
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue