Added birthday to Address
This commit is contained in:
@@ -266,7 +266,17 @@ class AddressController extends mfBaseController {
|
||||
$data['email'] = trim($r->email);
|
||||
$data['note'] = trim($r->note);
|
||||
$data['uid'] = trim($r->uid);
|
||||
|
||||
|
||||
if(trim($r->birthdate)) {
|
||||
try {
|
||||
$data["birthdate"] = (DateTime::createFromFormat("d.m.Y", trim($r->birthdate)))->format("Y-m-d");
|
||||
} catch(Exception $e) {
|
||||
$this->layout()->setFlash("Ungültiges Geburtsdaum", "warning");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
if($this->me->can("Fibu")) {
|
||||
$data["sepa_date"] = ($r->sepa_date) ? Layout::dateToInt($r->sepa_date) : null;
|
||||
|
||||
|
||||
@@ -22,6 +22,7 @@ class AddressModel {
|
||||
public $fax;
|
||||
public $mobile;
|
||||
public $email;
|
||||
public $birthday;
|
||||
public $uid;
|
||||
public $billing_type;
|
||||
public $billing_delivery;
|
||||
|
||||
Reference in New Issue
Block a user