Skip to content

Commit

Permalink
fixes #97: selected records on related list are lost on paging
Browse files Browse the repository at this point in the history
  • Loading branch information
joebordes committed Apr 4, 2014
1 parent 78c03e0 commit e6512b6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Smarty/templates/RelatedListContents.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ function loadRelatedListBlock(urldata,target,imagesuffix) {
}
}else{
$(imagesuffix+'_linkForSelectAll').hide();
rel_toggleSelect(false,imagesuffix+'_selected_id',relatedModule);
//rel_toggleSelect(false,imagesuffix+'_selected_id',relatedModule);
}
updateParentCheckbox(obj,imagesuffix);
}
Expand Down
4 changes: 2 additions & 2 deletions include/ListView/RelatedListViewContents.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@
!$resetCookie) {
//TODO for 5.3 this should be COOKIE not REQUEST, change here else where
// this logic is used for listview checkbox selection propogation.
$checkedRecordIdString = $_REQUEST[$relatedModule.'_all'];
$checkedRecordIdString = rtrim($checkedRecordIdString);
$checkedRecordIdString = (empty($_REQUEST[$relatedModule.'_all']) ? $_COOKIE[$relatedModule.'_all'] : $_REQUEST[$relatedModule.'_all']);
$checkedRecordIdString = rtrim($checkedRecordIdString,';');
$checkedRecordIdList = explode(';', $checkedRecordIdString);
$relatedListData["checked"]=array();
if (isset($relatedListData['entries'])) {
Expand Down

0 comments on commit e6512b6

Please sign in to comment.