Community Support for OpenDocMan (Deprecated)

Full Version: User defined fields are not searchable
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Can not filter by user defined field. The reason is that somewhere '_only" is added to the category item value. I didn't study the issue in depth and fixed it by adding

$lwhere = str_replace("_only","",$lwhere);

to the beginning of line 177 of search.php.

INITIAL LINE 177:
list($lquery_pre,$lquery) = udf_functions_search($lwhere,$lquery_pre,$lquery,$lequate,$lkeyword);

PATCHED LINE 177:
$lwhere = str_replace("_only","",$lwhere); list($lquery_pre,$lquery) = udf_functions_search($lwhere,$lquery_pre,$lquery,$lequate,$lkeyword);
This issue has already been fixed:

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