View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0019263 | phpList 3 application | Campaign Management | public | 31-05-18 17:20 | 16-11-18 12:17 |
Reporter | rolan | Assigned To | |||
Priority | normal | Severity | feature | Reproducibility | N/A |
Status | resolved | Resolution | fixed | ||
Product Version | 3.3.1 | ||||
Target Version | 3.3.4 | Fixed in Version | 3.3.4 | ||
Summary | 0019263: Copy previously sent message into draft | ||||
Description | The request comes up every now and then for the ability to copy a previously sent message into draft. This adds a button in the "Sent" campaign list to do so. https://forums.phplist.com/viewtopic.php?p=39364 Updated the patch to work with the latest version. Would be nice if this could be coded as a plugin, but there isn't a hook for it yet. | ||||
Additional Information | will make a pull request on github | ||||
Tags | No tags attached. | ||||
|
messages.patch (1,113 bytes)
158a159,171 > if (isset($_GET['duplicate'])) { > verifyCsrfGetToken(); > > Sql_Query(sprintf('insert into %s (subject, fromfield, tofield, replyto, message, textmessage, footer, entered, > modified, embargo, repeatinterval, repeatuntil, requeueuntil, requeueinterval, status, htmlformatted, > sendformat, template, processed, astext, ashtml, astextandhtml,aspdf, astextandpdf, rsstemplate, owner) > select subject, fromfield, tofield, replyto, message, textmessage, footer, now(), > now(), now(), repeatinterval, repeatuntil, requeueuntil, requeueinterval, "draft", htmlformatted, > sendformat, template, processed, astext, ashtml, astextandhtml,aspdf, astextandpdf, rsstemplate, "%d" from %s > where id = %d', > $GLOBALS['tables']['message'],$_SESSION['logindetails']['id'],$GLOBALS['tables']['message'],intval($_GET['duplicate']))); > } > 512a526,530 > > if ($msg['status'] == 'sent') { > $actionbuttons .= '<span class="edit">'.PageLinkButton('messages', s('Copy to Draft'), > 'tab=draft&duplicate='.$msg['id'], '', s('Copy to Draft')).'</span>'; > } |
|
PR: https://github.com/phpList/phplist3/pull/340 |