Skip to content
Snippets Groups Projects
Commit d61da033 authored by Ron Lucke's avatar Ron Lucke Committed by Jan-Hendrik Willms
Browse files

fix #4792

Closes #4792

Merge request studip/studip!3586
parent 38ee2413
No related branches found
No related tags found
No related merge requests found
...@@ -93,8 +93,8 @@ class UnitsCreate extends JsonApiController ...@@ -93,8 +93,8 @@ class UnitsCreate extends JsonApiController
'owner_id' => $user->id, 'owner_id' => $user->id,
'editor_id' => $user->id, 'editor_id' => $user->id,
'edit_blocker_id' => '', 'edit_blocker_id' => '',
'title' => self::arrayGet($json, 'data.attributes.title', ''), 'title' => self::arrayGet($json, 'data.attributes.title', 'neues Lernmaterial'),
'purpose' => self::arrayGet($json, 'data.attributes.purpose', ''), 'purpose' => self::arrayGet($json, 'data.attributes.purpose', 'content'),
'payload' => self::arrayGet($json, 'data.attributes.payload', ''), 'payload' => self::arrayGet($json, 'data.attributes.payload', ''),
'position' => 0, 'position' => 0,
'commentable' => 0 'commentable' => 0
......
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