Skip to content

Commit

Permalink
Merge pull request #21 from vlad-ghita/master
Browse files Browse the repository at this point in the history
Fix method name.
  • Loading branch information
bobdenotter authored Feb 8, 2022
2 parents 5f0c150 + 9df25b2 commit f202489
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ can include:
<textarea name="fields[{{ field.name }}]">{{ field.parsedValue }}</textarea>
{% elseif field.type === 'checkbox' %}
<input type="checkbox" name="fields[{{ field.name}}]" value="{{ field.parsedValue }}" />
{% else if field.type === 'date' %}
{% elseif field.type === 'date' %}
<input type="date" name="fields[{{ field.name }}]" value="{{ field.parsedValue }}" />
{% endif %}
{% endfor %}
Expand Down
4 changes: 2 additions & 2 deletions src/Controller/FrontendUsersProfileController.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public function view(): Response
$contentType = $this->getBoltConfig()->getContentType($contentTypeSlug);
$this->applyAllowForGroupsGuard($contentType);

return $this->twigAwareController->renderSingle($this->getUserRecord($contentType));
return $this->twigAwareController->renderSingle($this->getUserRecord($contentType), false);
}
else {
// If session was invalidated or ended, redirect user as needed when they try to access profile
Expand Down Expand Up @@ -119,7 +119,7 @@ public function edit(ContentType $contentType, Request $request): Response
$content->getContentTypeSingularSlug() => $content,
];

return $this->twigAwareController->renderTemplate($templates, $parameters);
return $this->twigAwareController->render($templates, $parameters);
}
else {
// If session was invalidated or ended, redirect user as needed when they try to access profile
Expand Down

0 comments on commit f202489

Please sign in to comment.