fix bad renaming of ids to contact_ids, group_ids and conditional_ids

This commit is contained in:
osaajani 2021-01-17 04:07:04 +01:00
parent bc39d020a1
commit c713a4419a
3 changed files with 9 additions and 9 deletions

View File

@ -62,7 +62,7 @@ namespace controllers\publics;
/**
* Cette fonction va supprimer une liste de groups.
*
* @param array int $_GET['ids'] : Les id des groups à supprimer
* @param array int $_GET['conditional_group_ids'] : Les id des groups à supprimer
* @param mixed $csrf
*
* @return boolean;
@ -76,7 +76,7 @@ namespace controllers\publics;
return $this->redirect(\descartes\Router::url('ConditionalGroup', 'list'));
}
$ids = $_GET['ids'] ?? [];
$ids = $_GET['conditional_group_ids'] ?? [];
foreach ($ids as $id)
{
$this->internal_conditional_group->delete_for_user($_SESSION['user']['id'], $id);
@ -100,7 +100,7 @@ namespace controllers\publics;
*/
public function edit()
{
$ids = $_GET['ids'] ?? [];
$ids = $_GET['conditional_group_ids'] ?? [];
$groups = $this->internal_conditional_group->gets_in_for_user($_SESSION['user']['id'], $ids);

View File

@ -61,7 +61,7 @@ namespace controllers\publics;
/**
* Cette fonction va supprimer une liste de contacts.
*
* @param array int $_GET['ids'] : Les id des contactes à supprimer
* @param array int $_GET['contact_ids'] : Les id des contactes à supprimer
* @param mixed $csrf
*
* @return boolean;
@ -75,7 +75,7 @@ namespace controllers\publics;
return $this->redirect(\descartes\Router::url('Contact', 'list'));
}
$ids = $_GET['ids'] ?? [];
$ids = $_GET['contact_ids'] ?? [];
foreach ($ids as $id)
{
$this->internal_contact->delete_for_user($_SESSION['user']['id'], $id);
@ -99,7 +99,7 @@ namespace controllers\publics;
*/
public function edit()
{
$ids = $_GET['ids'] ?? [];
$ids = $_GET['contact_ids'] ?? [];
$id_user = $_SESSION['user']['id'];
$contacts = $this->internal_contact->gets_in_for_user($id_user, $ids);

View File

@ -58,7 +58,7 @@ namespace controllers\publics;
/**
* Cette fonction va supprimer une liste de groups.
*
* @param array int $_GET['ids'] : Les id des groups à supprimer
* @param array int $_GET['group_ids'] : Les id des groups à supprimer
* @param mixed $csrf
*
* @return boolean;
@ -72,7 +72,7 @@ namespace controllers\publics;
return $this->redirect(\descartes\Router::url('Group', 'list'));
}
$ids = $_GET['ids'] ?? [];
$ids = $_GET['group_ids'] ?? [];
foreach ($ids as $id)
{
$this->internal_group->delete_for_user($_SESSION['user']['id'], $id);
@ -96,7 +96,7 @@ namespace controllers\publics;
*/
public function edit()
{
$ids = $_GET['ids'] ?? [];
$ids = $_GET['group_ids'] ?? [];
$groups = $this->internal_group->gets_in_for_user($_SESSION['user']['id'], $ids);