Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions include/people.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,11 @@ function () use ($action, &$cmsmain) {
addpagemenu('deactivated', 'Deactivated', ['link' => '?action=people_deactivated']);

// List Buttons
addbutton('export', 'Export', ['icon' => 'fa-download', 'showalways' => false, 'testid' => 'exportBeneficiariesButton']);
addbutton('export', 'Export Selected', ['icon' => 'fa-download', 'showalways' => false, 'testid' => 'exportBeneficiariesButton']);

// Show export all button if there are more than 500 beneficiaries
if ($number_of_people > 500) {
addbutton('export_all', 'Export All', ['icon' => 'fa-download', 'showalways' => true, 'testid' => 'exportAllBeneficiariesButton']);
// Show export all button if there are more than 500 beneficiaries, and if no filters applied
if (($number_of_people >= 500) && !$is_filtered) {
addbutton('export_all', 'Export All Records', ['icon' => 'fa-download', 'showalways' => true, 'testid' => 'exportAllBeneficiariesButton']);
}
if (!empty($tags)) {
addbutton('tag', 'Add Tag', ['icon' => 'fa-tag', 'options' => $tags]);
Expand Down