Now reading is_parent and parent_id from the correct place

This commit is contained in:
Andreas Stöckel 2012-03-30 12:06:10 +00:00
parent a8ed2af938
commit b4460d5924

View File

@ -163,11 +163,12 @@ var et2_nextmatch_rowProvider = Class.extend({
tr.appendChild(row); tr.appendChild(row);
// Make the row expandable // Make the row expandable
if (typeof _data["is_parent"] !== "undefined" && _data["is_parent"]) if (typeof _data.content["is_parent"] !== "undefined"
&& _data.content["is_parent"])
{ {
_row.makeExpandable(true, function () { _row.makeExpandable(true, function () {
return this._subgridCallback.call(this._context, return this._subgridCallback.call(this._context,
_row, _data["parent_id"]); _row, _data.content["parent_id"]);
}, this); }, this);
} }