ioBroker.admin
ioBroker.admin copied to clipboard
Admin 6: jsonConfig - linkeddevices: editing existing linked object -> input fields are not filled
Describe the bug
Editing a still existing linked object dont show input in for _prefixId and _stateId.
To Reproduce
take a look on the attached animated gif image, this shows the behaviour

Expected behavior
input field should be field from linkedId property
Screenshots & Logfiles
If applicable, add screenshots and logfiles to help explain your problem.
Versions:
- Adapter version: 6.2.17
- JS-Controller version: 4.0.23
- Node version: 16.17.0
- Operating system: ubuntu
Additional context
https://github.com/Scrounger/ioBroker.linkeddevices/issues/84
I dont know if this is a bug from Admin 6 site or a problem of my jsonCustom file. https://github.com/Scrounger/ioBroker.linkeddevices/blob/master/admin/jsonCustom.json
I have tested it.

_stateId is not taken from data.linkedId, it takes the last part of the object id.
"_stateId": {
"type": "autocompleteSendTo",
"label": "id of linked object",
"sm": 4,
"noMultiEdit": true,
"freeSolo": true,
"noTranslation": true,
"command": "suggestions_stateId",
"maxLength": 255,
"defaultFunc": {
"func": "(data.linkedId || '').split('.').pop()",
"alsoDependsOn": [
"linkedId"
]
},
"validator": "data._stateId && data._stateId.length > 0 && !(/[*?\"'`´,;:<>#/{}ß\\[\\]\\s]/).test(data._stateId)",
"help": "${data._stateId && data._stateId.length > 0 && !(/[*?\"'`´,;:<>#/{}ß\\[\\]\\s]/).test(data._stateId) ? '' : 'please enter a valid id, the following chars are not allowed \\'*?\"\\'`´,;:<>#/{}ß[] \\''}"
},
Fixed

i tested 6.2.21. Unfortunately, it still does not work. Now also the '_prefixId' in the input field does not work anymore.

Please use https://github.com/Scrounger/ioBroker.linkeddevices/pull/85
So no longer admin bug and will be fixed in adapter @GermanBluefox?