Skip to content

Commit ebd07fc

Browse files
Mh-Asmituxpiper
authored andcommitted
keep the source when update post
1 parent 1e85d97 commit ebd07fc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Ushahidi/Modules/V5/Actions/Post/Commands/UpdatePostCommand.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ public static function fromRequest(int $id, PostRequest $request, Post $current_
9191
? $request->input('base_language') : $current_post->base_language;
9292
$input['published_to'] = $request->has('published_to')
9393
? $request->input('published_to') : $current_post->published_to;
94+
$input['source'] = $current_post->source;
9495
$input['created'] = self::ensureTimestamp($current_post->created);
9596
$input['updated'] = time();
9697

0 commit comments

Comments
 (0)