Skip to content

Commit

Permalink
Limit alternate delivery address names to 35 characters
Browse files Browse the repository at this point in the history
  • Loading branch information
stefandoorn committed Aug 28, 2015
1 parent 8b1776f commit bddb8f2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Entity/AlternateDeliveryAddress.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@ public function getName()
*/
public function setName($name)
{
if (strlen($name) > 35) {
$name = substr($name, 0, 35);
}

$this->name = $name;
}
}

0 comments on commit bddb8f2

Please sign in to comment.