Skip to content

Commit

Permalink
Merge branch 'main' into patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
chromos33 authored Jun 23, 2021
2 parents 9b50c11 + a5b5f0f commit f00c68c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/DataObjects/JobCategory.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ public function Link(){
private static $db = [
'Title' => 'Text',
'TagSortTitle' => 'Text',
'Sort' => 'Int'
'Sort' => 'Int',
'URLSegment' => 'Varchar(255)'
];
/**
* CMS Fields
Expand Down Expand Up @@ -67,7 +68,7 @@ public function getCMSFields()
/**
* Event handler called before writing to the database.
*/
public function onBeforeWrite()
public function onBeforeWrite()
{
parent::onBeforeWrite();
if($this->URLSegment == "")
Expand Down
2 changes: 1 addition & 1 deletion src/Pages/JobsPage.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public function getCMSFields()
)
);
}
$this->extend('updateCMSFields', $fields);
$this->extend('updateJobPageCMSFields', $fields);
return $fields;
}
}

0 comments on commit f00c68c

Please sign in to comment.