WordPress database error: [Can't create/write to file '/tmp/#sql-temptable-4db-154e6c-11d.MAI' (Errcode: 28 "No space left on device")]SELECT p.* FROM wp_mdb_forum_posts AS p LEFT JOIN wp_mdb_forum_posts AS q ON( q.Id = p.ParentId AND p.Id = q.AcceptedAnswerId ) WHERE p.PostTypeId = 2 AND p.ParentId = 95938 GROUP BY p.Id ORDER BY CASE WHEN q.Id IS NOT NULL THEN 1 ELSE 0 END DESC, p.UpvoteCount DESC, p.CreationDate ASC
Topic: mdbTable does not sort when property value is NULL.
peter.r.bladh@saabgroup.com
asked 6 years ago
The mdbTable does not sort correct when having property values that is NULL.
When debugging, the following (compare) function will return 0 if a value is NULL.
function (a, b) {
/** @type {?} */
var i = 0;
while (i < key.length) {
a = a[key[i]];
b = b[key[i]];
i++;
}
if (a < b) {
return _this.sorted ? 1 : -1;
}
else if (a > b) {
return _this.sorted ? -1 : 1;
}
else {
return 0;
}
}));
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- User: Free
- Premium support: No
- Technology: MDB Angular
- MDB Version: 7.4.2
- Device: PC
- Browser: Chrome
- OS: Windows
- Provided sample code: No
- Provided link: No