Commit f8dc951c authored by guus's avatar guus

modified the FormField type to 'jid-single' for the results of both MUC and User search. (OF-4)

git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@11070 b35dd754-fafc-0310-a699-88a17e54d16e
parent 0bfa4612
...@@ -326,7 +326,7 @@ public class IQMUCSearchHandler ...@@ -326,7 +326,7 @@ public class IQMUCSearchHandler
resultform.addReportedField("num_max_users", "Max number allowed of users", FormField.Type.text_single); resultform.addReportedField("num_max_users", "Max number allowed of users", FormField.Type.text_single);
resultform.addReportedField("is_password_protected", "Is a password protected room.", FormField.Type.boolean_type); resultform.addReportedField("is_password_protected", "Is a password protected room.", FormField.Type.boolean_type);
resultform.addReportedField("is_member_only", "Is a member only room.", FormField.Type.boolean_type); resultform.addReportedField("is_member_only", "Is a member only room.", FormField.Type.boolean_type);
resultform.addReportedField("jid", "JID", FormField.Type.text_single); resultform.addReportedField("jid", "JID", FormField.Type.jid_single);
} }
if (applyRSM) if (applyRSM)
......
...@@ -714,12 +714,12 @@ public class SearchPlugin implements Component, Plugin, PropertyEventListener { ...@@ -714,12 +714,12 @@ public class SearchPlugin implements Component, Plugin, PropertyEventListener {
searchResults.addField("FORM_TYPE", null, FormField.Type.hidden); searchResults.addField("FORM_TYPE", null, FormField.Type.hidden);
searchResults.addReportedField("jid", "JID", null); searchResults.addReportedField("jid", "JID", FormField.Type.jid_single);
for (final String fieldName : getFilteredSearchFields()) { for (final String fieldName : getFilteredSearchFields()) {
searchResults.addReportedField(fieldName, searchResults.addReportedField(fieldName,
LocaleUtils.getLocalizedString("advance.user.search." + fieldName.toLowerCase(), "search"), LocaleUtils.getLocalizedString("advance.user.search." + fieldName.toLowerCase(), "search"),
null); FormField.Type.text_single);
} }
for (final User user : users) { for (final User user : users) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment