Skip to content

Commit

Permalink
fix: make operator in link filters translatable (backport #20884) (#2…
Browse files Browse the repository at this point in the history
…0911)

* fix: translate operator in link filters

(cherry picked from commit 7892a8b)

* chore: remove unscrubbing while displaying link field filters

---------

Co-authored-by: barredterra <14891507+barredterra@users.noreply.github.com>
  • Loading branch information
mergify[bot] and barredterra committed May 5, 2023
1 parent c47b146 commit 1ec3bad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frappe/public/js/frappe/form/controls/link.js
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@ frappe.ui.form.ControlLink = class ControlLink extends frappe.ui.form.ControlDat

let value = filter[3] == null || filter[3] === "" ? __("empty") : String(filter[3]);

return [__(label).bold(), filter[2], value.bold()].join(" ");
return [__(label).bold(), __(filter[2]), value.bold()].join(" ");
}

let filter_string = filter_array.map(get_filter_description).join(", ");
Expand Down

0 comments on commit 1ec3bad

Please sign in to comment.