forked from extern/egroupware
Handle if row doesn't have cat_id in class
This commit is contained in:
parent
31166f94a0
commit
d1cee69269
@ -436,9 +436,16 @@ var et2_nextmatch_rowProvider = Class.extend({
|
||||
if(_data["class"].indexOf("cat") !== -1 || classes.match(/[0-9]+/))
|
||||
{
|
||||
cats = classes.match(/(cat_)?([0-9]+)/);
|
||||
var invalid = typeof cats[1] == 'undefined';
|
||||
if(invalid) this._rootWidget.egw().debug("warn", "Invalid class '%s', prefixed with 'cat_'",cats[0]);
|
||||
cats = [cats[2]];
|
||||
if(cats == null)
|
||||
{
|
||||
cats = '';
|
||||
}
|
||||
else
|
||||
{
|
||||
var invalid = typeof cats[1] == 'undefined';
|
||||
if(invalid) this._rootWidget.egw().debug("warn", "Invalid class '%s', prefixed with 'cat_'",cats[0]);
|
||||
cats = [cats[2]];
|
||||
}
|
||||
|
||||
// Get category info
|
||||
if(!this.categories)
|
||||
|
Loading…
Reference in New Issue
Block a user