Skip to content

Commit

Permalink
fix: issue #576 with expanded ability to delete pages
Browse files Browse the repository at this point in the history
  • Loading branch information
David McReynolds committed Nov 5, 2020
1 parent a780f5f commit fbf2d59
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions fuel/modules/fuel/controllers/Module.php
Expand Up @@ -1621,9 +1621,16 @@ function delete($id = NULL)

$inline = $this->fuel->admin->is_inline();

if ( ! empty($_POST['id']))
if (! empty($_POST['id']))
{
$posted = explode('|', $this->input->post('id', TRUE));
if (!empty($id))
{
$posted = array($id);
}
else
{
$posted = explode('|', $this->input->post('id', TRUE));
}

// run before_delete hook
$this->_run_hook('before_delete', $posted);
Expand Down

0 comments on commit fbf2d59

Please sign in to comment.