There are (at least) two problems:
if( !scalar( @posValues ) &&
$store->topicExists( $web, $topic ) ) {
returns false if there are no options. It should be
if( (!scalar( @posValues ) || scalar(@posValues) == 0)) {
Second,
$topic
may actually be
$web.$topic
and in that case $topic has to be split
I've attempted to fix both of these problem and it passes my brief testing. I would very much appreciate it if someone would look over the code and make sure I've done things right.
SVN 9577
Meredith forgot to change state. I am beginning to understand how it is to be my wife and clean up after me :-P
It was a last minute fix but I spent two hours testing it very carefully and it does the job well and does not break the previous functionality. And I have personally missed that this worked for years so I am very thankful for the fix.
KJL
I have to lol at your first comment but... I wasn't comfortable changing the state to "Waiting for Release" until it had been tested more thoroughly. Maybe we need another state, "Please test"?
I'm really glad that it works and that someone besides me appreciates the fix.
ML
Closed with release of 4.0.2
KJL