16fcd800410b0c29be0564f2e657f30fa1862daf max Fri Jan 30 04:10:41 2026 -0800 fixing composite bug, refs #36917 diff --git src/lib/cheapcgi.c src/lib/cheapcgi.c index 47af4cca3e8..55adacd173e 100644 --- src/lib/cheapcgi.c +++ src/lib/cheapcgi.c @@ -2112,34 +2112,34 @@ void cgiMakeDropListClassWithIdStyleAndJavascript(char *name, char *id, char *menu[], int menuSize, char *checked, char *class, char *style, struct slPair *events) /* Make a drop-down list with name, id, text class, style and javascript. */ { int i; char *selString; if (checked == NULL) checked = menu[0]; printf("<SELECT"); if (name) printf(" NAME='%s'", name); if (events && !id) // use name as id id = name; if (id) printf(" id='%s'", id); + if (class) - printf(" class='vizSelect %s'", class); -else - printf(" class='vizSelect'"); + printf(" class='%s'", class); + if (events) { struct slPair *e; for(e = events; e; e = e->next) { jsOnEventById(e->name, id, e->val); } } if (style) printf(" style='%s'", style); printf(">\n"); for (i=0; i<menuSize; ++i) { if (sameWord(menu[i], checked)) selString = " SELECTED";