Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update htdocs/adherents/list.php #25711

Closed
wants to merge 1 commit into from
Closed
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: 5 additions & 3 deletions htdocs/adherents/list.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@


// Get parameters
$catid = GETPOST("catid", 'int');
Copy link
Member

@eldy eldy Aug 31, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Most pages follow the example of modulbuilder that set before action+navigation parameters

$socid = GETPOST('socid', 'int');

// action+display parameters
$action = GETPOST('action', 'aZ09');
$massaction = GETPOST('massaction', 'alpha');
$show_files = GETPOST('show_files', 'int');
Expand Down Expand Up @@ -75,9 +79,6 @@
$search_morphy = GETPOST("search_morphy", 'alpha');
$search_import_key = trim(GETPOST("search_import_key", 'alpha'));

$catid = GETPOST("catid", 'int');
$socid = GETPOST('socid', 'int');

$search_filter = GETPOST("search_filter", 'alpha');
$search_status = GETPOST("search_status", 'intcomma'); // statut

Expand Down Expand Up @@ -115,6 +116,7 @@
$sortfield = ($filter == 'outofdate' ? "d.datefin" : "d.lastname");
}

// Initialize objects
$object = new Adherent($db);

// Initialize technical object to manage hooks of page. Note that conf->hooks_modules contains array of hook context
Expand Down
Loading