Skip to content

Commit

Permalink
SAM-2617 - No way to edit question pool item if item is an image
Browse files Browse the repository at this point in the history
  • Loading branch information
jonespm committed Sep 9, 2015
1 parent 6efb67f commit d55ab38
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,10 @@ public QuestionPoolBean()
resetFields();
}

public int getRowIndex() {
return qpDataModel.getRowIndex();
}

public QuestionPoolDataModel getQpools()
{
if (qpDataModel == null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ table.checkall td {padding-top:0px;padding-bottom:0px;margin-top:0px;margin-bott
<h:commandLink title="#{questionPoolMessages.t_editQuestion}" id="modify" action="#{itemauthor.doit}">
<h:outputText escape="false" value="#{question.themeText}" rendered="#{question.typeId == 14}"/>
<h:outputText escape="false" value="#{itemContents.htmlStripped[question.text]}" rendered="#{question.typeId ne 14}"/>
<h:outputText escape="false" value="#{questionPoolMessages.t_editQuestion} #{questionpool.rowIndex} : #{question.themeText}" rendered="#{question.typeId == 14}"/>
<h:outputText escape="false" value="#{questionPoolMessages.t_editQuestion} #{questionpool.rowIndex} : #{itemContents.htmlStripped[question.text]}" rendered="#{question.typeId ne 14}"/>
<f:actionListener
type="org.sakaiproject.tool.assessment.ui.listener.author.ItemModifyListener" />
<f:param name="itemid" value="#{question.itemId}"/>
Expand Down

0 comments on commit d55ab38

Please sign in to comment.