MDL-36399 LTI editing tool config breaks on Oracle.

Note that this fix will fail if the tool URL is longer than 1333
characters.
This commit is contained in:
Tim Hunt
2013-07-26 10:16:11 +01:00
parent f171a8c06e
commit 18dde90e33
+1 -1
View File
@@ -505,7 +505,7 @@ function lti_get_type_config($typeid) {
FROM {lti_types_config}
WHERE typeid = :typeid1
UNION ALL
SELECT 'toolurl' AS name, baseurl AS value
SELECT 'toolurl' AS name, " . $DB->sql_compare_text('baseurl', 1333) . " AS value
FROM {lti_types}
WHERE id = :typeid2";