From cbbc1c940ec6669385a5d78dbc898e28552532bd Mon Sep 17 00:00:00 2001
From: Martin Haase <martin.haase@daasi.de>
Date: Thu, 22 Mar 2012 15:30:32 +0000
Subject: [PATCH] re-enabled first item of TG-1217

git-svn-id: https://textgridlab.org/svn/textgrid/trunk/middleware/tgauth@12407 7c539038-3410-0410-b1ec-0f2a7bf1c452
---
 .../tglib/WebUtils.class.php                                  | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/info.textgrid.middleware.tgauth.webauth/tglib/WebUtils.class.php b/info.textgrid.middleware.tgauth.webauth/tglib/WebUtils.class.php
index 8ce6b13..50e98bf 100644
--- a/info.textgrid.middleware.tgauth.webauth/tglib/WebUtils.class.php
+++ b/info.textgrid.middleware.tgauth.webauth/tglib/WebUtils.class.php
@@ -244,7 +244,9 @@ class WebUtils {
 	}
       }
       if ($this->isBoolean ($a)) {
-	if ($oldval === "TRUE") {
+	// pre-check "Searchable" box, cf. TG-1217
+ 	if (($a->name === 'agreesearch' && $oldval === "") ||  
+	    $oldval === "TRUE") {
 	  $checked = "checked=\"checked\"";
 	} else {
 	  $checked = "";
-- 
GitLab