Community Support for OpenDocMan (Deprecated)

Full Version: Error when viewing a category
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
In 1.2.6.5 when using db prefix different from odm, an attempt to view certain category produces error ".. odm_data table missing ..". The reason is a bug in line 229 in category.php which requires 'odm_data' instead of {$GLOBALS['CONFIG']['db_prefix']}data. The bug is fixed by replacing the

WRONG LINE 229
$query = "SELECT id, realname FROM 'odm_data' WHERE category = '$category_id'";

with

CORRECT LINE 229
$query = "SELECT id, realname FROM {$GLOBALS['CONFIG']['db_prefix']}data WHERE category = '$category_id'";
Issue created:

<!-- m --><a class="postlink" href="https://github.com/opendocman/opendocman/issues/95">https://github.com/opendocman/opendocman/issues/95</a><!-- m -->