From 14c1e6580a517b4d2f9f1e84028408019aa0e3c1 Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Mon, 26 Feb 2018 18:45:20 +0530 Subject: [PATCH] searx: Fix issue setting all safe search form values Signed-off-by: Sunil Mohan Adapa --- plinth/modules/searx/views.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plinth/modules/searx/views.py b/plinth/modules/searx/views.py index 2684a47ab..db2b7334a 100644 --- a/plinth/modules/searx/views.py +++ b/plinth/modules/searx/views.py @@ -45,9 +45,10 @@ class SearxServiceView(views.ServiceView): def form_valid(self, form): """Apply the changes submitted in the form.""" + old_data = form.initial form_data = form.cleaned_data - if form_data['safe_search']: + if str(old_data['safe_search']) != form_data['safe_search']: try: actions.superuser_run( 'searx',