cc-4462: Bandaided
This commit is contained in:
parent
ae1ae80d36
commit
81c72b8344
|
@ -77,8 +77,21 @@ class Application_Model_Datatables
|
||||||
// map that maps dbname to searchTerm
|
// map that maps dbname to searchTerm
|
||||||
$dbname2searchTerm = array();
|
$dbname2searchTerm = array();
|
||||||
foreach ($current2dbname as $currentPos => $dbname) {
|
foreach ($current2dbname as $currentPos => $dbname) {
|
||||||
$dbname2searchTerm[$dbname] =
|
$new_index = $librarySetting($currentPos);
|
||||||
$orig2searchTerm[$librarySetting($currentPos)];
|
// TODO : Fix this retarded hack later. Just a band aid for
|
||||||
|
// now at least we print some warnings so that we don't
|
||||||
|
// forget about this
|
||||||
|
if ( array_key_exists($new_index, $orig2searchTerm) ) {
|
||||||
|
$dbname2searchTerm[$dbname] = $orig2searchTerm[$new_index];
|
||||||
|
} else {
|
||||||
|
Logging::warn("Trying to reorder to unknown index
|
||||||
|
printing as much debugging as possible...");
|
||||||
|
$debug = array(
|
||||||
|
'$new_index' => $new_index,
|
||||||
|
'$currentPos' => $currentPos,
|
||||||
|
'$orig2searchTerm' => $orig2searchTerm);
|
||||||
|
Logging::warn($debug);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$where = array();
|
$where = array();
|
||||||
|
|
Loading…
Reference in New Issue