Compare commits
3 commits
Author | SHA1 | Date | |
---|---|---|---|
38a96d7ac2 | |||
60b4a1fd99 | |||
|
59f543e196 |
2 changed files with 15 additions and 10 deletions
|
@ -69,7 +69,7 @@ class modsendrecurringinvoicebymail extends DolibarrModules
|
|||
$this->editor_url = 'https://code.bugness.org/Dolibarr/sendrecurringinvoicebymail';
|
||||
|
||||
// Possible values for version are: 'development', 'experimental', 'dolibarr', 'dolibarr_deprecated' or a version string like 'x.y.z'
|
||||
$this->version = '0.3.2';
|
||||
$this->version = '0.3.3';
|
||||
|
||||
//Url to the file with your last numberversion of this module
|
||||
//$this->url_last_version = 'http://www.example.com/versionmodule.txt';
|
||||
|
|
|
@ -147,7 +147,7 @@ do {
|
|||
$mailObject->sendcc_thirdparty = in_array('thirdparty', GETPOST('sendcc_socpeople', 'array'));
|
||||
|
||||
$mailObject->subject = GETPOST('subject', 'alpha');
|
||||
$mailObject->body = GETPOST('body', 'alpha');
|
||||
$mailObject->body = GETPOST('body', 'restricthtml');
|
||||
$mailObject->body_ishtml = (int)GETPOST('body_ishtml', 'int');
|
||||
|
||||
// Save into database
|
||||
|
@ -300,16 +300,21 @@ do {
|
|||
$output .= '<tr><td class="minwidth200" valign="top">';
|
||||
$output .= $form->textwithpicto($langs->trans("MailText"), $helpforsubstitution, 1, 'help', '', 0, 2, 'substittooltipfrombody');
|
||||
$output .= "</td>\n<td>";
|
||||
/*
|
||||
// doleditor does some weird stuff, adding <br> and newlines, I'll get more into it when I have time.
|
||||
// fallback to simple <textarea> for the time being.
|
||||
|
||||
|
||||
require_once DOL_DOCUMENT_ROOT.'/core/class/doleditor.class.php';
|
||||
$doleditor = new DolEditor('body_plaintext', (GETPOST('body_plaintext', 'alpha') ? GETPOST('body_plaintext', 'alpha') : $mailObject->body_plaintext), '', 280);
|
||||
$doleditor = new DolEditor(
|
||||
'body',
|
||||
(GETPOST('body', 'alpha') ? GETPOST('body', 'alpha') : $mailObject->body),
|
||||
'',
|
||||
280,
|
||||
'dolibarr_mailings', // toolbar name
|
||||
'In', // toolbar location
|
||||
false, // toolbar start expanded
|
||||
true, // use local browser
|
||||
!empty($conf->global->FCKEDITOR_ENABLE_MAIL) // follow global conf about using ckeditor for mails.
|
||||
);
|
||||
$output .= $doleditor->Create(1);
|
||||
*/
|
||||
$output .= '<textarea id="body" name="body" rows="14" cols="80" class="flat">';
|
||||
$output .= htmlentities(GETPOST('body', 'alpha') ? GETPOST('body', 'alpha') : $mailObject->body);
|
||||
$output .= "</textarea>\n";
|
||||
$output .= "</td></tr>\n";
|
||||
|
||||
// body_ishtml
|
||||
|
|
Loading…
Reference in a new issue