Skip to content
Snippets Groups Projects
Commit 0be9a367 authored by Rasmus Fuhse's avatar Rasmus Fuhse
Browse files

Resolve "Anlegen von Coursewares funktioniert nicht immer"

Closes #2153

Merge request studip/studip!1390
parent 74658534
No related branches found
No related tags found
1 merge request!4Draft: Icon creation
......@@ -99,11 +99,11 @@ class UnitsCreate extends JsonApiController
'structural_element_id' => $struct->id,
'content_type' => 'courseware',
'creator_id' => $user->id,
'public' => self::arrayGet($json, 'data.attributes.public', ''),
'public' => self::arrayGet($json, 'data.attributes.public', '0'),
'release_date' => self::arrayGet($json, 'data.attributes.release-date'),
'withdraw_date' => self::arrayGet($json, 'data.attributes.withdraw-date'),
]);
$unit->store();
return $unit;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment