fixed samples visible scope
gitea/salix/test This commit looks good Details
gitea/salix/master This commit looks good Details

This commit is contained in:
Joan Sanchez 2019-03-01 07:27:29 +01:00
parent 08650a177e
commit 4fe4c7886b
2 changed files with 9 additions and 7 deletions

View File

@ -2,9 +2,9 @@
"name": "Sample", "name": "Sample",
"base": "VnModel", "base": "VnModel",
"options": { "options": {
"mysql": { "mysql": {
"table": "sample" "table": "sample"
} }
}, },
"properties": { "properties": {
"id": { "id": {
@ -19,14 +19,16 @@
"type": "String" "type": "String"
}, },
"isVisible": { "isVisible": {
"type": "Number" "type": "Boolean"
}, },
"hasCompany": { "hasCompany": {
"type": "Number" "type": "Number"
} }
}, },
"scope": { "scopes": {
"where": {"isVisible": 1} "visible": {
"where": {"isVisible": true}
}
}, },
"acls": [ "acls": [
{ {

View File

@ -14,7 +14,7 @@
field="$ctrl.clientSample.typeFk" field="$ctrl.clientSample.typeFk"
model="ClientSample.typeFk" model="ClientSample.typeFk"
fields="['code','hasCompany']" fields="['code','hasCompany']"
url="/client/api/Samples" url="/client/api/Samples/visible"
show-field="description" show-field="description"
value-field="id" value-field="id"
label="Sample"> label="Sample">