checkboxs not displayed if Multi-Update only (v10)

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
maxzhuang
User
Posts: 1

checkboxs not displayed if Multi-Update only (v10)

Post 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";
}
}


mobhar
User
Posts: 11905

Post by mobhar »

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


Post Reply