Commit 2bd84453 authored by Aaron Wells's avatar Aaron Wells Committed by Robert Lyon
Browse files

Silence error messages from tagged journal entries ajax script

Bug 1557896: When you first click in Select2, it fires off an
aqax request with no "q" value (because there's no query string
yet). We return a "required parameter missing" error message in
a JSON object, which causes a Javascript warning in the browser.

Better to just treat it like an empty q, instead of a missing q.

behatnotneeded - unable to test for issues in console

Change-Id: I81c4cfe77c51fce735cfd2628aaed1e40cc35940
(cherry picked from commit 28fcc277)
parent 6ad316e3
......@@ -16,7 +16,7 @@ require(dirname(dirname(dirname(dirname(dirname(__FILE__))))) . '/init.php');
global $USER;
$request = param_variable('q');
$request = param_variable('q', '');
$tagexcluded = '';
if (substr($request, 0, 1) == '-') {
$request = substr($request, 1);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment