FSN#35817 Autorisaties via API2/Scaffolding
svn path=/Website/trunk/; revision=28565
This commit is contained in:
@@ -339,8 +339,12 @@ function scf_RWFIELDTR(model, fld, val, key, params)
|
||||
if (val && val.id && params.required)
|
||||
emptyOption = null;
|
||||
}
|
||||
if (val && typeof val == "object" && "id" in val)
|
||||
{ // dereference
|
||||
val = val.id;
|
||||
}
|
||||
FCLTselector(fld, sql, { label: field.label,
|
||||
initKey: params.search?null:(val?val.id:null),
|
||||
initKey: val||null,
|
||||
emptyOption: emptyOption,
|
||||
emptyKey: (field.typ=="key"?-1:""),
|
||||
readonly: (foreign.readonly?foreign.readonly:false),
|
||||
|
||||
Reference in New Issue
Block a user