Skip to content

Commit

Permalink
Fixes issue IgnitedDatatables#84 - add_column greater than 9
Browse files Browse the repository at this point in the history
  • Loading branch information
Oli Mortimer committed Feb 24, 2015
1 parent 722f1a6 commit 9d1c48f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions application/libraries/Datatables.php
Original file line number Diff line number Diff line change
Expand Up @@ -445,6 +445,9 @@ private function get_total_results($filtering = FALSE)
private function exec_replace($custom_val, $row_data)
{
$replace_string = '';

// Go through our array backwards, else $1 (foo) will replace $11, $12 etc with foo1, foo2 etc
$custom_val['replacement'] = array_reverse($custom_val['replacement'], true);

if(isset($custom_val['replacement']) && is_array($custom_val['replacement']))
{
Expand Down

0 comments on commit 9d1c48f

Please sign in to comment.