MDL-60608 calendar: change eventdefaultcontext default to 0
authorSimey Lameze <simey@moodle.com>
Fri, 27 Oct 2017 06:19:16 +0000 (14:19 +0800)
committerSimey Lameze <simey@moodle.com>
Fri, 27 Oct 2017 06:19:16 +0000 (14:19 +0800)
calendar/classes/external/calendar_day_exporter.php
calendar/classes/external/calendar_upcoming_exporter.php
calendar/classes/external/month_exporter.php

index 091dffc..54d5e50 100644 (file)
@@ -74,7 +74,7 @@ class calendar_day_exporter extends exporter {
             ],
             'defaulteventcontext' => [
                 'type' => PARAM_INT,
-                'default' => null,
+                'default' => 0,
             ],
             'filter_selector' => [
                 'type' => PARAM_RAW,
index ab35779..a7759c6 100644 (file)
@@ -74,7 +74,7 @@ class calendar_upcoming_exporter extends exporter {
             ],
             'defaulteventcontext' => [
                 'type' => PARAM_INT,
-                'default' => null,
+                'default' => 0,
             ],
             'filter_selector' => [
                 'type' => PARAM_RAW,
index 9ca253e..12b910e 100644 (file)
@@ -171,7 +171,7 @@ class month_exporter extends exporter {
             ],
             'defaulteventcontext' => [
                 'type' => PARAM_INT,
-                'default' => null,
+                'default' => 0,
             ],
         ];
     }