FSN#36152 Bij koppeltabellen iets intelligentere tabelnaamkoplabel
svn path=/Website/trunk/; revision=29079
This commit is contained in:
@@ -205,11 +205,24 @@ function scaffolding_list(model, scf_params)
|
||||
return false;
|
||||
}
|
||||
|
||||
// Uniques misbruiken we om een intelligentere tabelkop te kunnen maken
|
||||
var title = model.records_title;
|
||||
for (var fld in model.fields)
|
||||
{
|
||||
var field = model.fields[fld];
|
||||
if (field.uniquewith && fld in filter) // Dan de andere waarde tonen als tabel
|
||||
{
|
||||
// Eigenlijk willen we de records_title van de andere tabel.
|
||||
// Die is echter niet included
|
||||
title = model.fields[field.uniquewith].label;
|
||||
}
|
||||
}
|
||||
|
||||
var rst = new ResultsetTable({ dataset: xxx_array,
|
||||
hasMore: model.total_count > xxx_array.length,
|
||||
keyColumn: ("id" in model.fields?"id":null),
|
||||
ID: model.table,
|
||||
title: model.records_title,
|
||||
title: title,
|
||||
showAll: showAll,
|
||||
canCSV: !nobuttons && model.list.canCSV,
|
||||
rowClass: model.list.rowClass || fnRowClass,
|
||||
|
||||
Reference in New Issue
Block a user