diff options
author | zeripath <art27@cantab.net> | 2023-01-16 11:25:22 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-16 11:25:22 +0000 |
commit | 16e9dec8279ae1984db2cb2fb0ea57e0af77f95e (patch) | |
tree | 4e79714cc3fdf293cdb9d667bdff4bb0027626eb /modules/setting | |
parent | 1e7f3c16a4f4b309cf9259e284450e66652121ae (diff) | |
download | gitea-16e9dec8279ae1984db2cb2fb0ea57e0af77f95e.tar.gz gitea-16e9dec8279ae1984db2cb2fb0ea57e0af77f95e.zip |
Fix Operator does not exist bug on explore page with ONLY_SHOW_RELEVANT_REPOS (#22454)
There is a mistake in the code for SearchRepositoryCondition where it
tests topics as a string. This is incorrect for postgres where topics is
cast and stored as json. topics needs to be cast to text for this to
work. (For some reason JSON_ARRAY_LENGTH does not work, so I have taken
the simplest solution of casting to text and doing a string comparison.)
Ref https://github.com/go-gitea/gitea/pull/21962#issuecomment-1379584057
Signed-off-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: delvh <dev.lh@web.de>
Diffstat (limited to 'modules/setting')
0 files changed, 0 insertions, 0 deletions