diff --git a/libraries/Datatable.php b/libraries/Datatable.php index d7f2363..8a47062 100644 --- a/libraries/Datatable.php +++ b/libraries/Datatable.php @@ -190,7 +190,8 @@ public function datatableJson($formats = array(), $debug = FALSE) $selectArray[] = $c['data']; } if ($this->rowIdCol !== NULL && in_array($this->rowIdCol, $selectArray) === FALSE) { - $selectArray[] = $this->rowIdCol; + $tableName = explode('.',$selectArray[0])[0]; + $selectArray[] = "{$tableName}.{$this->rowIdCol}"; } //put the select string together @@ -457,4 +458,4 @@ public function whereClauseArray(); } // END Datatable Class -/* End of file Datatable.php */ \ No newline at end of file +/* End of file Datatable.php */