Iets robuustere code

svn path=/Website/trunk/; revision=29100
This commit is contained in:
Jos Groot Lipman
2016-04-21 08:51:54 +00:00
parent 99014555bd
commit a4ac45c285
2 changed files with 4 additions and 2 deletions

View File

@@ -268,7 +268,7 @@ function scaffolding_search(model, scf_params)
var field = model.fields[fld];
if (field.hidden || field.typ=="label") // Hidden kun je ook niet aanzetten, en labels idem.
continue;
if (!field.label || field.label == '<hidden>')
if (!field.label || field.label == '<hidden>' || !field.dbs)
continue;
var on = inArray(fld, scf_params.list.columns);

View File

@@ -93,8 +93,10 @@ function scaffolding_show(model, scf_params)
else
__Log("Geen printknop want {0} is niet gevonden".format(xslfile));
if (model.edit.modal) // het is dan vreemd dat we hier zijn. Expliciete showmode
if (model.edit.modal|| scf_params.edit && scf_params.edit.modal)
{ // het is dan vreemd dat we hier zijn. Expliciete showmode
buttons = []; // zoals fac_usrtab record vanuit materiaal.
}
IFRAMER_HEADER(model.record_title, buttons);
%>
<div id="show">