Allow search to be disabled

Review Request #8600 - Created Jan. 5, 2017 and submitted

Barret Rennie
Review Board

Previously, we always attempted to save the configuration form for the
currently selected search backend, even when we were disabling search.
This lead a 500 error and search not being able to be disabled (as we
were only checking the validity of the form when search was enabled).
Now we only save the sub-form configuration when search is enabled,
which lets search be disabled successfully.

I was able to disable search with this patch applied. Without it I
could not.

Review Bot
David Trowbridge
Christian Hammond
Barret Rennie
Review request changed

Status: Closed (submitted)

Change Summary:

Pushed to release-3.0.x (c133f3a)