I have an album named "great britain". If I search for "great" in the "search by word" filter, it should find all photos belonging to this album. It does not. Indeed the SQL query generated is:
SELECT DISTINCT(id)
FROM piwigo_images i
INNER JOIN piwigo_image_category AS ic ON id = ic.image_id
WHERE (
(file LIKE '%great%'
OR name LIKE '%great%'
OR comment LIKE '%great%')
AND
category_id IN (1))
ORDER BY date_available DESC, file ASC, id ASC
We see that album 1 matches the "great" word in its name (or description). The SQL queries says "it must belong to this album + its filename OR title OR description must match the word "great" also. We never occurs in my data sample. The category_id IN (...) is not correctly placed in the SQL query. We should have this instead:
SELECT DISTINCT(id)
FROM piwigo_images i
INNER JOIN piwigo_image_category AS ic ON id = ic.image_id
WHERE (
(file LIKE '%great%'
OR name LIKE '%great%'
OR comment LIKE '%great%'
OR category_id IN (1))
)
ORDER BY date_available DESC, file ASC, id ASC
I have an album named "great britain". If I search for "great" in the "search by word" filter, it should find all photos belonging to this album. It does not. Indeed the SQL query generated is:
```
SELECT DISTINCT(id)
FROM piwigo_images i
INNER JOIN piwigo_image_category AS ic ON id = ic.image_id
WHERE (
(file LIKE '%great%'
OR name LIKE '%great%'
OR comment LIKE '%great%')
AND
category_id IN (1))
ORDER BY date_available DESC, file ASC, id ASC
```
We see that album 1 matches the "great" word in its name (or description). The SQL queries says "it must belong to this album + its filename OR title OR description must match the word "great" also. We never occurs in my data sample. The `category_id IN (...)` is not correctly placed in the SQL query. We should have this instead:
```
SELECT DISTINCT(id)
FROM piwigo_images i
INNER JOIN piwigo_image_category AS ic ON id = ic.image_id
WHERE (
(file LIKE '%great%'
OR name LIKE '%great%'
OR comment LIKE '%great%'
OR category_id IN (1))
)
ORDER BY date_available DESC, file ASC, id ASC
```
<!-- github-sync-id:1781085133 -->
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
I have an album named "great britain". If I search for "great" in the "search by word" filter, it should find all photos belonging to this album. It does not. Indeed the SQL query generated is:
We see that album 1 matches the "great" word in its name (or description). The SQL queries says "it must belong to this album + its filename OR title OR description must match the word "great" also. We never occurs in my data sample. The
category_id IN (...)is not correctly placed in the SQL query. We should have this instead: