mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-24 20:01:36 +02:00
Apparently expandName() can also return null - handle that too
This commit is contained in:
parent
2087aed7a3
commit
7b9b5efe7f
@ -253,13 +253,13 @@ var et2_grid = et2_DOMWidget.extend([et2_IDetachedDOM, et2_IAligned],
|
|||||||
var ident = content.expandName(value);
|
var ident = content.expandName(value);
|
||||||
var regex = new RegExp("\\[" + content.perspectiveData.row + "\\]");
|
var regex = new RegExp("\\[" + content.perspectiveData.row + "\\]");
|
||||||
|
|
||||||
if(ident.match(regex))
|
if(ident != null && ident.match(regex))
|
||||||
{
|
{
|
||||||
rowData[rowIndex] = jQuery.extend({}, rowDataEntry);
|
rowData[rowIndex] = jQuery.extend({}, rowDataEntry);
|
||||||
content.perspectiveData.row = ++rowIndex;
|
content.perspectiveData.row = ++rowIndex;
|
||||||
regex = new RegExp("\\[" + content.perspectiveData.row + "\\]");
|
regex = new RegExp("\\[" + content.perspectiveData.row + "\\]");
|
||||||
}
|
}
|
||||||
} while(ident.match(regex))
|
} while(ident != null && ident.match(regex))
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user