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 28fcc277b384c8e1cf25f34399834a18366e3bee)
Reviewed: https:/ /reviews. mahara. org/6205 /git.mahara. org/mahara/ mahara/ commit/ 2bd84453159cdb6 5a7c20470b3adf7 564c0053d6
Committed: https:/
Submitter: Robert Lyon (<email address hidden>)
Branch: 15.10_STABLE
commit 2bd84453159cdb6 5a7c20470b3adf7 564c0053d6
Author: Aaron Wells <email address hidden>
Date: Wed Mar 16 19:46:15 2016 +1300
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: I81c4cfe77c51fc e735cfd2628aaed 1e40cc35940 1cf25f34399834a 18366e3bee)
(cherry picked from commit 28fcc277b384c8e