Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fehler in Sprachfilterung bei Liste (Letzte Version vom 2 Apr 2014) #6

Open
elektromanager opened this issue Apr 1, 2015 · 0 comments

Comments

@elektromanager
Copy link

Wenn man wie in meinem Fall 3 Sprachen aktiv hat und nun auf der Startseite News "nur für aktuelle Sprache" ausgibt werden trotzdem News aus anderen Sprachen ausgegeben. Beim Debuggen stellte ich fest, dass der Wert "language" gar nicht im SQL-Query berücksichtigt wird.

Query: SELECT * ,
CASE
WHEN REPLACE(stickyUntil, "-", "") > CURDATE() + 0 THEN true
ELSE false
END as st

FROM rex_336_news
WHERE (
((offline_date = "0000-00-00") OR (REPLACE(offline_date, "-", "") > CURDATE() + 0))
AND
((online_date = "0000-00-00") OR REPLACE(online_date, "-", "") <= CURDATE() + 0)
)
AND status = "1" AND flag = 1
ORDER BY st DESC, online_date DESC LIMIT 0,3
Affected Rows: 3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant