AnsweredAssumed Answered

When is a boolean not?

Question asked by David Tod on Oct 22, 2018

Was trying to work out how to remove a new tool from course navigation without reinstalling it, and came up with this which worked:


var url='https://<ourdomain><uniqueidhere>';
url: url,
type: 'PUT',
data: 'course_navigation[default]=disabled',
success: function(data) {
alert('Tool was disabled.');


but took some wall-directed head-banging before realizing that the parameter was not true or false, but disabled or enabled. Is this me not reading the docs properly, or what?