Skip to content

Commit a519dfe

Browse files
committed
fix: umbraco 15 issues
1 parent 7313b2e commit a519dfe

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

backend/src/MethodConf.Cms/Controllers/SessionFeedbackController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public async Task<ActionResult<SessionFeedbackResponseDto>> Create(Guid sessionI
2020

2121
return result switch
2222
{
23-
{ IsFailed: true } when result.Errors.Any(e => e is InvalidEntityIdError or IneligibleForFeedback) => BadRequest(result.Errors),
23+
{ IsFailed: true } when result.Errors.Any(e => e is InvalidEntityIdError) => BadRequest(result.Errors),
2424
{ IsSuccess: true } => Ok(mapper.Map<SessionFeedbackResponseDto>(result.Value)),
2525
_ => StatusCode(500)
2626
};

backend/src/MethodConf.Cms/Services/ConferenceScheduleService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public Result<ConferenceSchedule> GetSchedule(Guid conferenceId)
1818
return Result.Fail(new InvalidEntityIdError(conferenceId.ToString()));
1919
}
2020

21-
var sessions = conference.FirstChild<Sessions>()?.Children.ToArray() ?? [];
21+
var sessions = conference.FirstChild<Sessions>()?.Children<Umbraco.Cms.Core.Models.PublishedContent.IPublishedContent>()?.ToArray() ?? [];
2222

2323
var scheduleItems = new List<ScheduleItem>();
2424

backend/src/MethodConf.Cms/Views/Partials/blockgrid/items.cshtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
class="umb-block-grid__layout-item"
1313
data-content-element-type-alias="@item.Content.ContentType.Alias"
1414
data-content-element-type-key="@item.Content.ContentType.Key"
15-
data-element-udi="@item.ContentUdi"
15+
data-element-key="@item.ContentKey"
1616
data-col-span="@item.ColumnSpan"
1717
data-row-span="@item.RowSpan"
1818
style=" --umb-block-grid--item-column-span: @item.ColumnSpan; --umb-block-grid--item-row-span: @item.RowSpan; ">

backend/src/MethodConf.Cms/Views/Partials/blocklist/default.cshtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<div class="umb-block-list">
66
@foreach (var block in Model)
77
{
8-
if (block?.ContentUdi == null) { continue; }
8+
if (block?.Content == null) { continue; }
99
var data = block.Content;
1010

1111
@await Html.PartialAsync("blocklist/Components/" + data.ContentType.Alias, block)

0 commit comments

Comments
 (0)