Skip to content

Commit

Permalink
fix: Add filter in Workspace Card Links Block (backport #23578) (#23685)
Browse files Browse the repository at this point in the history
Co-authored-by: sibi kumar k <95605794+sibikumarkuppusamy@users.noreply.github.com>
  • Loading branch information
mergify[bot] and sibikumarkuppusamy committed Dec 8, 2023
1 parent e33d8be commit 29bcf7b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions frappe/public/js/frappe/widgets/widget_dialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,15 @@ class CardDialog extends WidgetDialog {
get_options: (df) => {
return df.doc.link_type;
},
get_query: function (df) {
if (df.link_type == "DocType") {
return {
filters: {
istable: 0,
},
};
}
},
},
{
fieldname: "column_break_7",
Expand Down

0 comments on commit 29bcf7b

Please sign in to comment.