Code Monkey home page Code Monkey logo

Comments (3)

dasistwas avatar dasistwas commented on August 14, 2024

Error happens when more than 1 team member and ordering by text field is defined in the filter settings.

from moodle-mod_datalynx.

dasistwas avatar dasistwas commented on August 14, 2024

Debug info: Unknown column 'c1164.fieldid' in 'where clause'
SELECT COUNT(e.id) FROM vphonline___datalynx_entries e
JOIN vphonline___user u ON u.id = e.userid
LEFT JOIN vphonline___groups g ON g.id = e.groupid LEFT JOIN
(SELECT r.itemid, r.component, r.ratingarea, r.contextid,
COUNT(r.rating) AS numratings,
AVG(r.rating) AS avgratings,
SUM(r.rating) AS sumratings,
MAX(r.rating) AS maxratings,
MIN(r.rating) AS minratings,
ur.id as ratingid, ur.userid as ratinguserid, ur.scaleid, ur.rating AS usersrating
FROM vphonline___rating r
LEFT JOIN vphonline___rating ur ON ur.contextid = r.contextid
AND ur.itemid = r.itemid
AND ur.component = r.component
AND ur.ratingarea = r.ratingarea
AND ur.userid = ?
WHERE r.contextid = ?
AND r.component = ?
AND r.ratingarea = ?
GROUP BY r.itemid, r.component, r.ratingarea, r.contextid, ratingid, ur.userid, ur.scaleid
ORDER BY r.itemid) AS er ON er.itemid = e.id WHERE e.dataid = ? AND ( (e.id <> ?) OR ( ( (e.id <> ?) AND c1164.fieldid = 1164 )))
[array (
0 => '25',
1 => 195313,
2 => 'mod_datalynx',
3 => 'entry',
4 => '116',
5 => '5337',
6 => '5337',
)]
Error code: dmlreadexception

Einstellung zu dieser Fehlermeldung: 2 Teammemberselect Felder und check IST LEER:

Screenshot_2019-06-28 Bericht hochladen Filter (Verwaltungsmodus)

from moodle-mod_datalynx.

michaelpollak avatar michaelpollak commented on August 14, 2024

Fixed this yesterday, problem was that the "empty" check was not added to OR linked terms. I built a function so this can never happen again and we use the same checks for AND and OR terms.

from moodle-mod_datalynx.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.