The issue involves a form rendering problem due to an undefined grid attribute in a table multiselect field.
The issue occurs when a form tries to render a page containing a table multiselect field, but fails because the `grid` attribute is undefined. This leads to a rendering halt. The problem seems to originate from the `version_timeline_content_builder.js` script. The exact doctype structure is needed to reproduce the issue, which is currently missing.
I have a table multiselect field in the record, when the form loads, it stops rendering:
This issue arises because the version_timeline_content_builder.js script is trying to read the attribute grid of a tablemultiselect field
which doesn't exist.
cur_frm.fields_dict['diagnosis'].grid
=>undefined
Originates from here:
if (data.row_changed && data.row_changed.length) {
let parts = [];
data.row_changed.every(function (row) {
row[3].every(function (p) {
var df =
frm.fields_dict[row[0]] &&
frappe.meta.get_docfield(
frm.fields_dict[row[0]].grid.doctype, <======= grid is undefined
p[0],
frm.docname
);
Output of bench version
bench: 5.24.1
frappe: version-15 (v15.65.2)
My thinking is that Table Multiselect should be spec
Claim this issue to let others know you're working on it. You'll earn 20 points when you complete it!