Menu

#33 Can't set section rights in admin_edit_user

v2.0
closed-fixed
nobody
5
2006-12-12
2005-04-20
No

In admin_edit_user, when displaying all sections, you
can't set rights on main sections and on the last
section. Rights may also be set on the wrong sections.

This is because checkboxes are not named as they
should. Some names are missing and other are
duplicated as line number is not incremented at the
same place in getRightSectionCheckboxTable and
getRightSubSectionCheckboxTable.

Fix :
org.cofax.cms.CofaxUtilsUtil.java, in
getRightSubSectionCheckboxTable

move 'checkBoxTableRightLength++;'

after

tabSubSections.append("<TR>");
tabSubSections.append("<TD><INPUT
TYPE=CHECKBOX " + checked2 + " NAME='d" +
checkBoxTableRightLength + "' VALUE='1'></TD>");
tabSubSections.append("<TD><INPUT
TYPE=CHECKBOX " + checked2_2 + " NAME='s" +
checkBoxTableRightLength + "' VALUE='" +
mappingCode2 + "'>");
tabSubSections.append(
"<INPUT TYPE=HIDDEN NAME='PARAM" +
checkBoxTableRightLength + "' VALUE='" +
mappingCode2 + "'></TD><TD nowrap>" + blanks +
sectionDesc2 + "</TD></TR>\n");

Discussion

  • F.X. Robin

    F.X. Robin - 2006-12-12

    Logged In: YES
    user_id=1283696
    Originator: NO

    fix already in code

     
  • F.X. Robin

    F.X. Robin - 2006-12-12
    • status: open --> closed-fixed
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.