function populateDefaults()
 {
     parent::populateDefaults();
     $this->Title = _t("OrderStatusLog.ORDERDISPATCHED", "Order Dispatched");
     $this->DispatchedOn = date('Y-m-d');
     if (Security::database_is_ready()) {
         if (Member::currentUser()) {
             $this->DispatchedBy = Member::currentUser()->getTitle();
         }
     }
 }
 function populateDefaults()
 {
     parent::populateDefaults();
     $this->Title = _t("OrderStatusLog.ORDERDISPATCHED", "Order Dispatched");
     $this->DispatchedOn = date('Y-m-d');
     $this->DispatchedBy = Member::currentUser()->getTitle();
 }