selectable choice for arbitrary fields, RT#25623
authorIvan Kohler <ivan@freeside.biz>
Fri, 25 Oct 2013 03:10:30 +0000 (20:10 -0700)
committerIvan Kohler <ivan@freeside.biz>
Fri, 25 Oct 2013 03:10:30 +0000 (20:10 -0700)
httemplate/edit/elements/svc_Common.html

index 0d9d36c..58af6bc 100644 (file)
                      $f->{'hashref'}     = {
                                             'classnum'=>$columndef->columnvalue
                                            };
+                   } elsif ( $flag eq 'S' ) { #selectable choice
+                     $f->{type}    = 'select';
+                     $f->{options} = [ split( /\s*,\s*/,
+                                                $columndef->columnvalue)
+                                     ];
                    }
 
                    if (    $f->{'type'} eq 'select-svc_pbx'