Custom CDR field in queue connect

Trying to populate a custom CDR field in the “gosub” of a queue connect. See the code below. The userfield gets populated in the database but “operatorid” does not. What am I doing wrong? I’ve double checked the spelling of my custom field between the database and the field in the code.

[code][queues]
exten =>sales,1,Verbose(2,${CALLERID(all)} entering the sales queue)
same =>n,Queue(sales,subQueueConnected)
same =>n,Hangup()

[subQueueConnected]
exten =>s,1,NoOp()
same =>n,Set(CDR(operatorid)=test)
same =>n,Set(CDR(userfield)=mitch)
same =>n,Return()

[/code]

Here is my cdr conf:

[code][adaptive_connection]
connection=asterisk
table=asterisk_cdr

[/code]

This seems like it might be a bug. The following code gives me “test1” in the operatorid field, when I think it should give me “test2”.

[code][queues]
exten =>sales,1,Verbose(2,${CALLERID(all)} entering the sales queue)
same =>n,Set(CDR(operatorid)=test1)
same =>n,Queue(sales,subQueueConnected)
same =>n,Hangup()

[subQueueConnected]
exten =>s,1,NoOp()
same =>n,Set(CDR(operatorid)=test2)
same =>n,Set(CDR(userfield)=mitch)
same =>n,Return()
[/code]