MDL-37961 webservice: PARAM_BOOL with PARAM_DEFAULT accepts boolean default
This commit is contained in:
committed by
Eloy Lafuente (stronk7)
parent
af5d66f999
commit
bc2de4ab0e
+1
-1
@@ -1191,7 +1191,7 @@ class '.$classname.' {
|
||||
} else {
|
||||
switch($keydesc->type) {
|
||||
case PARAM_BOOL:
|
||||
$paramanddefault .= '='.$keydesc->default; break;
|
||||
$paramanddefault .= '='. (int) $keydesc->default; break;
|
||||
case PARAM_INT:
|
||||
$paramanddefault .= '='.$keydesc->default; break;
|
||||
case PARAM_FLOAT;
|
||||
|
||||
Reference in New Issue
Block a user