mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-14 09:58:16 +01:00
Only allow printing custom fields if they're already selected (and loaded)
This commit is contained in:
parent
04ab1494fb
commit
766dd31d16
@ -2054,12 +2054,12 @@ var et2_nextmatch = (function(){ "use strict"; return et2_DOMWidget.extend([et2_
|
|||||||
if(col.visibility === ET2_COL_VISIBILITY_VISIBLE) columns_selected.push(colName);
|
if(col.visibility === ET2_COL_VISIBILITY_VISIBLE) columns_selected.push(colName);
|
||||||
}
|
}
|
||||||
// Custom fields get listed separately
|
// Custom fields get listed separately
|
||||||
if(widget.instanceOf(et2_nextmatch_customfields))
|
if(widget.instanceOf(et2_nextmatch_customfields) && col.visibility === ET2_COL_VISIBILITY_VISIBLE)
|
||||||
{
|
{
|
||||||
if(jQuery.isEmptyObject(widget.customfields))
|
if(jQuery.isEmptyObject(widget.customfields))
|
||||||
{
|
{
|
||||||
// No customfields defined, don't show column
|
// No customfields defined, don't show column
|
||||||
delete(columns[col.id]);
|
delete(columns[colName]);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
for(var field_name in widget.customfields)
|
for(var field_name in widget.customfields)
|
||||||
|
Loading…
Reference in New Issue
Block a user