New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
createState() in "0_userdata.0" overwrites existing state #597
Comments
sandbox.js, Zeile 1842: Kann man Datenpunkte unter "0_userdata.0" mit adapter.getObject() prüfen ? |
Ich würde Zeilen 1842 bis 1916 ersetzen durch (bitte prüfen):
` |
Hm ... ja sowas in der Art ... muss nochmal genau drüber nachdenken. |
Bitte in Javascript 4.6.19 versuchen |
Ist in Javascript 4.6.19 nicht behoben. |
Ok, JETZT hab ichs verstanden :-) 4.6.20 incoming |
Funktioniert in Version 4.6.20 |
Thx |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
A user created state in "0_userdata.0" with createState() gets overwritten on next script restart although state already exists. The forceCreate parameter may implicitely be set or exclicitely be set to false - no change in behaviour.
This is confirmed with JS-controller 2.2.9 and 4.6.17 (see forum thread).
Test script to confirm:
`createState(
'0_userdata.0.test.state1',
{name: 'test state1'},
function() { log('created'); });
createState(
'0_userdata.0.test.state2',
0,
false, // force
{name: 'test state2'},
function() { log('created (force:false)'); });
`
Run script once to create the states. Run script next time(s) to confirm states being overwritten.
The text was updated successfully, but these errors were encountered: