Commit 78582561c0741e0b36e14ce4e73089d79d031a9c

Authored by kevin_fourie
1 parent 61a03e58

Merged in from DEV trunk...

KTS-3359
"CLONE -Problem with advanced search(sup-829)"
Fixed. There was a problem when selecting values from user, document type, and mime lists.

Committed By: Conrad Vermeulen
Reviewed By: Megan Watson


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/STABLE/branches/3.5.2c-Release-Branch@8488 c91229c3-7414-0410-bfa2-8a42b809f60b
templates/ktcore/search2/adv_query_builder.smarty
@@ -82,7 +82,7 @@ function createUserList(groupid, fid) @@ -82,7 +82,7 @@ function createUserList(groupid, fid)
82 html += "<SELECT id=\"field" + groupid + "_" + fid + "start\">"; 82 html += "<SELECT id=\"field" + groupid + "_" + fid + "start\">";
83 for(i=0;i<meta_users.length;i++) 83 for(i=0;i<meta_users.length;i++)
84 { 84 {
85 - html += "<option>" + meta_users[i].name; 85 + html += "<option value=\"" + meta_users[i].name + "\">" + meta_users[i].name;
86 } 86 }
87 html += "</SELECT>"; 87 html += "</SELECT>";
88 html += "<td width=\"100%\">&nbsp;"; 88 html += "<td width=\"100%\">&nbsp;";
@@ -105,7 +105,7 @@ function createDocTypes(groupid, fid) @@ -105,7 +105,7 @@ function createDocTypes(groupid, fid)
105 html += "<SELECT id=\"field" + groupid + "_" + fid + "start\">"; 105 html += "<SELECT id=\"field" + groupid + "_" + fid + "start\">";
106 for(i=0;i<meta_documenttypes.length;i++) 106 for(i=0;i<meta_documenttypes.length;i++)
107 { 107 {
108 - html += "<option>" + meta_documenttypes[i].name; 108 + html += "<option value=\"" + meta_documenttypes[i].name + "\">" + meta_documenttypes[i].name;
109 } 109 }
110 html += "</SELECT>"; 110 html += "</SELECT>";
111 html += "<td width=\"100%\">&nbsp;"; 111 html += "<td width=\"100%\">&nbsp;";
@@ -128,7 +128,7 @@ function createMimeTypes(groupid, fid) @@ -128,7 +128,7 @@ function createMimeTypes(groupid, fid)
128 html += "<SELECT id=\"field" + groupid + "_" + fid + "start\">"; 128 html += "<SELECT id=\"field" + groupid + "_" + fid + "start\">";
129 for(i=0;i<meta_mimetypes.length;i++) 129 for(i=0;i<meta_mimetypes.length;i++)
130 { 130 {
131 - html += "<option>" + meta_mimetypes[i]; 131 + html += "<option value=\"" + meta_mimetypes[i] + "\">" + meta_mimetypes[i];
132 } 132 }
133 html += "</SELECT>"; 133 html += "</SELECT>";
134 html += "<td width=\"100%\">&nbsp;"; 134 html += "<td width=\"100%\">&nbsp;";