Fixed error when trying to add a new change.

This commit is contained in:
flash 2024-01-24 18:28:13 +00:00
parent ec6ba3f781
commit dba5754ccc
2 changed files with 2 additions and 2 deletions

View file

@ -115,5 +115,5 @@ Template::render('manage.changelog.change', [
'change_info_tags' => $changeTagIds,
'change_tags' => $tagInfos,
'change_actions' => $changeActions,
'change_author_id' => $authInfo->getUserInfo(),
'change_author_id' => $authInfo->getUserInfo()->getId(),
]);

View file

@ -57,7 +57,7 @@
<button class="input__button">Save</button>
{% if not change_new %}
<a href="{{ url('manage-changelog-change-delete', { change: change_info.id, csrf: csrf_token() }) }}" class="input__button input__button--destroy" onclick="return confirm('Are you sure?');">Delete</a>
{% endif %}
{% endif %}
</div>
</form>
</div>