mirror of
https://github.com/Karaka-Management/oms-Comments.git
synced 2026-02-11 23:18:40 +00:00
l11n, unit/app and simplification fixes
This commit is contained in:
parent
1957796677
commit
e860e9b075
|
|
@ -343,7 +343,7 @@ final class ApiController extends Controller
|
|||
$comment->title = (string) ($request->getData('title') ?? $comment->title);
|
||||
$comment->contentRaw = (string) ($request->getData('plain') ?? $comment->contentRaw);
|
||||
$comment->content = Markdown::parse((string) ($request->getData('plain') ?? $comment->contentRaw));
|
||||
$comment->ref = $request->hasData('ref') ? (int) $request->getData('ref') : $comment->ref;
|
||||
$comment->ref = $request->getData('ref', 'int');
|
||||
|
||||
return $comment;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user