IgnitedDatatables / Ignited-Datatables

Ignited Datatables is a wrapper class/library based on the native Datatables server-side implementation by Allan Jardine found at http://datatables.net/examples/data_sources/server_side.html for CodeIgniter
285 stars 335 forks source link

Fixes issue #84 - add_column greater than 9 #85

Closed olimortimer closed 8 years ago

olimortimer commented 9 years ago

If you use add_column, and attempt to pass more than 9 match_replacements (ie, $10, $11 etc), the exec_replace replacement function doesn't work. This is due to exec_replace running through each key in order, which causes $1 (foo) to also replace $11, $12 etc with foo1, foo2 etc.

Probably not the greatest solution, but it works

sanseru commented 5 years ago

How to fix it? when i have more than 9 match_replacment?

n1crack commented 5 years ago

hmm. More than 9 replacement is a sign that something is wrong.

olimortimer commented 5 years ago

How to fix it? when i have more than 9 match_replacment?

The merged commit should fix it

olimortimer commented 5 years ago

hmm. More than 9 replacement is a sign that something is wrong.

Care to elaborate?