Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Webform branch_9_5_x: %(row) macro to display checkboxes and radiobuttons in one row isn't working any more. #54

Open
kartobi opened this issue Mar 17, 2016 · 1 comment

Comments

@kartobi
Copy link

kartobi commented Mar 17, 2016

Looks like CmsMacroResolver cuts "%(row)" so showInRow = true; never will be reached:

CmsMacroResolver resolver = CmsMacroResolver.newInstance().setCmsObject(cms).setJspPageContext(jsp.getJspContext());
fieldValue = resolver.resolveMacros(fieldValue);
// get items from String
boolean showInRow = false;
if (fieldValue.startsWith(MACRO_SHOW_ITEMS_IN_ROW)) {
   showInRow = true;
   fieldValue = fieldValue.substring(MACRO_SHOW_ITEMS_IN_ROW.length());
}

(CmsForm.java#L3245)

@kartobi
Copy link
Author

kartobi commented Mar 29, 2016

cp. pull request #55

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant