MDL-70863 mod_forum: Allow NULL in timecreated

This commit is contained in:
Juan Leyva
2021-03-31 17:55:04 +02:00
parent 3c5a338cd4
commit 5cfb30aa97
+10 -2
View File
@@ -105,8 +105,16 @@ class post extends exporter {
'default' => null,
'null' => NULL_ALLOWED
],
'timecreated' => ['type' => PARAM_INT],
'timemodified' => ['type' => PARAM_INT],
'timecreated' => [
'type' => PARAM_INT,
'default' => null,
'null' => NULL_ALLOWED
],
'timemodified' => [
'type' => PARAM_INT,
'default' => null,
'null' => NULL_ALLOWED
],
'unread' => [
'type' => PARAM_BOOL,
'optional' => true,