Skip to content

Commit

Permalink
fix(grid row): fix update_docfield_property function not updating gri…
Browse files Browse the repository at this point in the history
…d row

(cherry picked from commit ed5ce12)
  • Loading branch information
AHasanin authored and mergify[bot] committed Apr 10, 2023
1 parent ec1c63c commit 558f908
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions frappe/public/js/frappe/form/grid.js
Original file line number Diff line number Diff line change
Expand Up @@ -979,6 +979,10 @@ export default class Grid {
// update the parent too (for new rows)
this.docfields.find(d => d.fieldname === fieldname)[property] = value;

if ( this.user_defined_columns && this.user_defined_columns.length > 0 ){
this.user_defined_columns.find((d) => d.fieldname === fieldname)[property] = value;
}

this.debounced_refresh();
}
}

0 comments on commit 558f908

Please sign in to comment.