I have this proc loaded from openacs/tcl/moto-procs.tcl...
proc moto_dealer { var } {
set dealer_id [moto_get_dealer_id]
array set moto_dealer [nsv_array get moto_dealer]
return $moto_dealer($dealer_id,$var)
}
If I call it from normal Tcl page such as index.tcl, it works fine. But, if I call it from a template page such as master.tcl, I get this error:
can't read "moto_dealer(73,name)": no such element in array