When passing in an $expected array to putAttributes(), you check "if ($v{'value'})" before calling $rest->setParameter(), but this will evaluate to FALSE if $v{'value'} is '0'. We use '0' a lot in SDB so this is a problem. It is easily fixed by using "if (isset($v{'value'}))" instead. The same applies a few lines down where you're checking on $v{exists}.
I used curly brackets here to get around the BBCode. :)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hey there, it's me again with another bug. :)
When passing in an $expected array to putAttributes(), you check "if ($v{'value'})" before calling $rest->setParameter(), but this will evaluate to FALSE if $v{'value'} is '0'. We use '0' a lot in SDB so this is a problem. It is easily fixed by using "if (isset($v{'value'}))" instead. The same applies a few lines down where you're checking on $v{exists}.
I used curly brackets here to get around the BBCode. :)
Oh, the same applies to deleteAttributes()
Awesome :) I'll fix the subversion trunk later today.
Committed to trunk. Let me know if I broke anything ;)