OpenContent
OpenContent copied to clipboard
Avoid un-editabel items?
I had a client with this in their data definition:
Schema:
"MainImage": {
"type": "object",
"title": "Main Image",
"properties": {
"Image": {
"type": "string",
"title": "Crop for Lists"
},
"Title": {
"type": "string",
"title": "Title"
},
"ShowTitle": {
"type": "boolean",
"title": "ShowTitle",
"helper": "test"
}
}
}
Options:
"MainImage": {
"type": "object",
"fields": {
"Image": {
"type": "imagex",
"uploadhidden": false,
"fileMaxSize": 10485760,
"showOverwrite": true,
"overwrite": false,
"showCropper": true,
"saveCropFile": true,
"width": 1200,
"height": 1200
},
"Title": {
"type": "textarea",
"configset": "basic"
}
}
}
They use this daily and generally it works fine. But yesterday there was an issue with the internet connection (apparently) during the upload of an image which left the article in-editable.
This as in the raw data:
"MainImage": {
"Image": {},
"Crop": "center-center",
"ShowTitle": false
},
After I removed that, edit was working again.
Can we somehow prevent this situation?