 |
GeneralStonewall Magician
Joined: 02 Feb 2004 Posts: 364 Location: USA
|
Posted: Thu Jun 17, 2010 11:52 pm
[3.19f] BUG: Default values not working properly |
Default values don't seem to be working correctly. I first noticed this when reporting this bug: http://forums.zuggsoft.com/forums/viewtopic.php?t=35310
Load this variable into a fresh session:
| Code: |
<?xml version="1.0" encoding="ISO-8859-1" ?>
<cmud>
<var name="testvar" type="Record" usedef="true" copy="yes">
<value>b=2|a=1</value>
<json>{"b":2,"a":1}</json>
</var>
</cmud> |
Close the session, open it, and the variable will not be returned to it's default value. |
|
|
|
 |
Zugg MASTER

Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: Fri Jun 18, 2010 2:27 am |
Confirmed. The JSON value seems to be getting set *after* the default value has been loaded. So the default gets overwritten. Added to bug list.
|
|
|
|
 |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|