Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#33 No space allowed in profile keys

open
nobody
5
2012-10-16
2012-10-16
Gianni Campanile
No

When using the old profile editor, if you define a manycheckbox parameter, the key of each parameter must not contain spaces. Since the key is used to build a JS variable, spaces will break the page.
To solve this you must modify the InputSelectManyCheckbox.java class substituting the lines 144-146 and 199-201 with:
String sKey = code.getKey();
String sFKey = sKey.replace('.','_');
//sFKey = sKey.replace(':','_');
sFKey = sFKey.replace(':','_');
sFKey=sFKey.replace(" ", "_");
sFKey=sFKey.replace("/", "_");
This allows blanks and slashes to be included in keys.

Discussion