Fix setting a custom title when cloning a single filter.

This commit is contained in:
wn_
2025-01-06 16:04:27 +00:00
parent e546e73914
commit 5a93056c1c
2 changed files with 5 additions and 4 deletions

View File

@@ -176,11 +176,11 @@ define(["dojo/_base/declare", "dojo/dom-construct", "lib/CheckBoxTree"], functio
if (sel_rows.length === 1) {
const selected_filter = this.model.getCheckedItems()[0];
const new_title = prompt(__("Name for new filter:"),
const new_filter_title = prompt(__("Name for new filter:"),
__("Clone of %s").replace("%s", this.model.store.getValue(selected_filter, "bare_name")));
if (new_title) {
query.new_title = new_title;
if (new_filter_title) {
query.new_filter_title = new_filter_title;
proceed = true;
}
} else if (sel_rows.length > 1) {