Page 1 of 1

checkboxs not displayed if Multi-Update only (v10)

Posted: Fri Sep 13, 2013 10:42 pm
by maxzhuang

If I don't select Multiple delete, and only select Multi-Update, then in the generated list page,
The checkboxs will not be displayed.

I checked the template codes, that's caused by list-script-function.php

// Set up multi checkbox visibility
var sCheckboxVisible = "FALSE";
if (bExportSelectedOnly) {
sCheckboxVisible = "TRUE";
} else {
if (TABLE.TblDelete && bMultiDelete)
sCheckboxVisible = ew_SecurityCheck("Delete", bSecurityEnabled, bAnonymousDelete, bUserLevel);
if (bMultiUpdate) {
sWrkVisible = ew_SecurityCheck("Edit", bSecurityEnabled, bAnonymousEdit, bUserLevel);
sCheckboxVisible = BuildCond(sCheckboxVisible, "||", sWrkVisible);
}
}

In the condition I described, the sCheckboxVisible will be wrongly set to "FALSE"

I changed it to following

if (bMultiUpdate) {
if (bSecurityEnabled) {
sWrkVisible = ew_SecurityCheck("Edit", bSecurityEnabled, bAnonymousEdit, bUserLevel);
sCheckboxVisible = BuildCond(sCheckboxVisible, "||", sWrkVisible);
} else {
sCheckboxVisible = "TRUE";
}
}


Re: checkboxs not displayed if Multi-Update only (v10)

Posted: Sun Sep 15, 2013 8:28 am
by mobhar

Thanks for letting us know about it. It works as expected.