Form : bouton tout supprimer + faille CSRF

This commit is contained in:
fredtempez 2019-01-26 11:27:00 +01:00
commit fdb814c05a
1 changed files with 2 additions and 2 deletions

View File

@ -198,12 +198,12 @@ class form extends common {
if (count($data) > 0 ) {
// Suppression multiple
for ($i = 1; $i <= count($data) ; $i++) {
$this->deleteData(['module', $this->getUrl(0), 'data', $i]);
echo $this->deleteData(['module', $this->getUrl(0), 'data', $i]);
}
// Valeurs en sortie
$this->addOutput([
'redirect' => helper::baseUrl() . $this->getUrl(0) . '/data',
'notification' => 'Toutes les données ont été supprimées',
'notification' => 'Données supprimées',
'state' => true
]);
} else {