Permalink
Browse files

MDL-28436 webservice : fixed missing field in query

  • Loading branch information...
1 parent 1e42eed commit 46d1d80388c300690eb95fdfa400b0a732a6bf8d @nebgor nebgor committed with stronk7 Oct 10, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/adminlib.php
View
2 lib/adminlib.php
@@ -7517,7 +7517,7 @@ public function output_html($data, $query='') {
//TODO: in order to let the administrator delete obsolete token, split this request in multiple request or use LEFT JOIN
//here retrieve token list (including linked users firstname/lastname and linked services name)
- $sql = "SELECT t.id, t.token, u.id AS userid, u.firstname, u.lastname, s.name, t.validuntil, s.id AS serviceid
+ $sql = "SELECT t.id, t.token, u.id AS userid, u.firstname, u.lastname, s.name, t.iprestriction, t.validuntil, s.id AS serviceid
FROM {external_tokens} t, {user} u, {external_services} s
WHERE t.creatorid=? AND t.tokentype = ? AND s.id = t.externalserviceid AND t.userid = u.id";
$tokens = $DB->get_records_sql($sql, array($USER->id, EXTERNAL_TOKEN_PERMANENT));

0 comments on commit 46d1d80

Please sign in to comment.