MDL-37961 webservice: PARAM_BOOL with PARAM_DEFAULT accepts boolean default
This commit is contained in:
committed by
Eloy Lafuente (stronk7)
parent
731ff94a87
commit
a3ded4c023
+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