Download to e-mail module where a user can receive a download in exchange for having the link sent to their e-mail (nice way to collect e-mails for marketing purposes).
After mail sended , the EmailDownloadPageID not updated in tabel EmailDownloadPage_Registration,
So need to add line as followed in file EmailDownloadPage
......
if(!$obj) {
$obj = new EmailDownloadPage_Registration();
$obj->Email = $email;
$obj->DownloadFileID = $this->DownloadFileID;
$obj->EmailDownloadPageID = $this->ID; //add zmb
......
Otherwise ,the gridfield will be empty in the CMS BACKYARD.
After mail sended , the EmailDownloadPageID not updated in tabel EmailDownloadPage_Registration, So need to add line as followed in file EmailDownloadPage ...... if(!$obj) { $obj = new EmailDownloadPage_Registration(); $obj->Email = $email; $obj->DownloadFileID = $this->DownloadFileID; $obj->EmailDownloadPageID = $this->ID; //add zmb
...... Otherwise ,the gridfield will be empty in the CMS BACKYARD.