diff --git a/libraries/Datatable.php b/libraries/Datatable.php index d7f2363..297702a 100644 --- a/libraries/Datatable.php +++ b/libraries/Datatable.php @@ -213,12 +213,7 @@ public function datatableJson($formats = array(), $debug = FALSE) $colName = $columnIdxArray[$o['column']]; //handle custom sql expressions/subselects if (substr($colName, 0, 2) === '$.') { - $aliasKey = substr($colName, 2); - if (isset($customExpArray[$aliasKey]) === FALSE) { - throw new Exception('Alias[' . $aliasKey . '] Could Not Be Found In appendToSelectStr() Array'); - } - - $colName = $customExpArray[$aliasKey]; + $colName = substr($colName, 2); } $this->CI->db->order_by($colName, $o['dir']); } @@ -457,4 +452,4 @@ public function whereClauseArray(); } // END Datatable Class -/* End of file Datatable.php */ \ No newline at end of file +/* End of file Datatable.php */