Skip to content

Commit

Permalink
Remove validation on Block Title field
Browse files Browse the repository at this point in the history
As mentioned in #95
  • Loading branch information
sheadawson committed May 24, 2016
1 parent bea0346 commit 4abf00a
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions code/dataobjects/Block.php
Expand Up @@ -202,20 +202,6 @@ public function getCMSFields()
return $fields;
}

/**
* @return ValidationResult
*/
public function validate()
{
$result = parent::validate();

if (!$this->Title) {
$result->error(_t('Block.TitleRequired', 'Block Title is required'));
}

return $result;
}

/**
* Renders this block with appropriate templates
* looks for templates that match BlockClassName_AreaName
Expand Down

0 comments on commit 4abf00a

Please sign in to comment.