Skip to content

Commit 7d012ae

Browse files
committed
[spalenque] - #13032 * fix bug on hackathons videos
1 parent 868e890 commit 7d012ae

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

events/code/infrastructure/active_records/OpenStackDaysVideo.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,10 @@ class OpenStackDaysVideo extends VideoLink {
1818
);
1919

2020
private static $has_one = array(
21-
'AboutVideos' => 'OpenStackDaysPage',
22-
'Collaterals' => 'OpenStackDaysPage',
23-
'ParentPage' => 'OpenStackDaysPage', //dummy
21+
'About' => 'OpenStackDaysPage',
22+
'AboutHack' => 'HackathonsPage',
23+
'Collaterals' => 'OpenStackDaysPage',
24+
'ParentPage' => 'OpenStackDaysPage', //dummy
2425
);
2526

2627
function getCMSFields(){

events/code/ui/HackathonsPage.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class HackathonsPage extends Page {
2828
private static $has_one = array();
2929

3030
private static $has_many = array(
31-
'AboutVideos' => 'OpenStackDaysVideo.About',
31+
'AboutVideos' => 'OpenStackDaysVideo.AboutHack',
3232
'HeaderPics' => 'OpenStackDaysImage.HeaderPics',
3333
'OfficialGuidelines' => 'OpenStackDaysDoc.OfficialGuidelines',
3434
'PlanningTools' => 'OpenStackDaysDoc.PlanningTools',

0 commit comments

Comments
 (0)