diff --git a/DataTables-Editor-Server/Field.cs b/DataTables-Editor-Server/Field.cs
index 3dc0120..24d98ed 100644
--- a/DataTables-Editor-Server/Field.cs
+++ b/DataTables-Editor-Server/Field.cs
@@ -739,7 +739,7 @@ public Field Xss(Boolean flag)
/// Called by the Editor / Join class instances - not expected for general
/// consumption - internal.
///
- /// Direction that the data is travelling - 'get' is reading DB data, `create` and `edit` for writing to the DB
+ /// Direction that the data is traveling - 'get' is reading DB data, `create` and `edit` for writing to the DB
/// Data submitted from the client-side when setting.
/// true if the field should be used in the get / set.
internal bool Apply(string action, Dictionary data = null)
diff --git a/DataTables-Editor-Server/SearchBuilderOptions.cs b/DataTables-Editor-Server/SearchBuilderOptions.cs
index 959e123..9ec6f28 100644
--- a/DataTables-Editor-Server/SearchBuilderOptions.cs
+++ b/DataTables-Editor-Server/SearchBuilderOptions.cs
@@ -245,11 +245,11 @@ internal List> Exec(Field fieldIn, Editor editor, Lis
.Table(this._table)
.LeftJoin(_leftJoin);
- if(fieldIn.Apply("get") && fieldIn.GetValue() == null){
+ if(fieldIn.Apply("get") && fieldIn.GetValue() == null) {
query
.Get(this._value + " as value")
.Get(_label + " as label")
- .GroupBy(this._value);
+ .GroupBy(this._value + ", " + _label);
}
var res = query.Exec()
diff --git a/DataTables-Editor-Server/SearchPaneOptions.cs b/DataTables-Editor-Server/SearchPaneOptions.cs
index 0a83ec0..28585c3 100644
--- a/DataTables-Editor-Server/SearchPaneOptions.cs
+++ b/DataTables-Editor-Server/SearchPaneOptions.cs
@@ -277,7 +277,7 @@ internal List> Exec(Field fieldIn, Editor editor, Lis
.Table(table)
.Get(label + " as label")
.Get(value + " as value")
- .GroupBy(value)
+ .GroupBy(value + ", " + label)
.Where(_where)
.LeftJoin(join);