ElkArte Community

Elk Development => Bug Reports => Exterminated Bugs => Topic started by: kode54 on April 19, 2019, 10:54:35 pm

Title: [1.1.5] Cannot add triggers to an existing ban
Post by: kode54 on April 19, 2019, 10:54:35 pm
The add ban trigger button works, but when completing the trigger form, it results in a page with the error, "Ban not found."
Title: Re: [1.1.5] Cannot add triggers to an existing ban
Post by: Spuds on April 20, 2019, 11:11:30 am
Thanks for the report ... Looks like its a simple fix in Managebans.controller.php in function action_edittrigger()

Code: (find) [Select]
		$ban_group = $this->_req->getQuery('bg', 'intval', 0);
$ban_id = $this->_req->getQuery('bi', 'intval', 0);
Code: (replace) [Select]
		$ban_group = $this->_req->get('bg', 'intval', 0);
$ban_id = $this->_req->get('bi', 'intval', 0);

ETA: https://github.com/elkarte/Elkarte/issues/3306