Community Support for OpenDocMan (Deprecated)
User defined fields are not searchable - Printable Version

+- Community Support for OpenDocMan (Deprecated) (https://forum.opendocman.com)
+-- Forum: OpenDocMan Community Discussion (https://forum.opendocman.com/forum-5.html)
+--- Forum: OpenDocMan Bug Reports (https://forum.opendocman.com/forum-8.html)
+--- Thread: User defined fields are not searchable (/thread-650.html)



User defined fields are not searchable - vladi550821 - 11-16-2013

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);


Re: User defined fields are not searchable - Stephen - 11-16-2013

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 -->