Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ public class FormControlJspBean extends AbstractJspBean
private static final String MARK_LOGICAL_OPERATORS_LIST = "logicalOperators";
private static final String MARK_PAGINATOR = "paginator";
private static final String MARK_NB_ITEMS_PER_PAGE = "nb_items_per_page";
private static final String MARK_NEXT_STEP_TITLE = "nextStepTitle";

private static final String PARAMETER_PAGE_INDEX = "page_index";

Expand Down Expand Up @@ -178,7 +179,7 @@ public String getManageControl( HttpServletRequest request )
Map<String, Object> model = getModel( );
if(_controlType == ControlType.TRANSITION) {
Transition transition = TransitionHome.findByPrimaryKey( _nIdTarget );
model.put( "nextStepTitle", StepHome.findByPrimaryKey( transition.getNextStep() ).getTitle( ) );
model.put( MARK_NEXT_STEP_TITLE, StepHome.findByPrimaryKey( transition.getNextStep() ).getTitle( ) );
}
model.put( MARK_PAGINATOR, paginator );
model.put( MARK_NB_ITEMS_PER_PAGE, StringUtils.EMPTY + _nItemsPerPage );
Expand Down Expand Up @@ -544,8 +545,9 @@ private void buildControlModel( HttpServletRequest request, Map<String, Object>
IValidator validator = EntryServiceManager.getInstance( ).getValidator( _control.getValidatorName( ) );
strValidatorTemplate = validator.getDisplayHtml( _control );
}
if(_controlType.name() == "TRANSITION") {
model.put("nextStepTitle", request.getParameter("nextStepTitle"));
if(_controlType.name().equals("TRANSITION"))
{
model.put(MARK_NEXT_STEP_TITLE, request.getParameter(MARK_NEXT_STEP_TITLE));
}

model.put( FormsConstants.MARK_QUESTION, _question );
Expand Down