#88 Remove customer email notifications profile setting
This commit is contained in:
parent
59167aff66
commit
b886eeedde
@ -1400,12 +1400,10 @@ function hesk_printReplyForm() {
|
|||||||
</select></div><br />
|
</select></div><br />
|
||||||
<label><input type="checkbox" name="signature" value="1" checked="checked" /> <?php echo $hesklang['attach_sign']; ?></label>
|
<label><input type="checkbox" name="signature" value="1" checked="checked" /> <?php echo $hesklang['attach_sign']; ?></label>
|
||||||
(<a href="profile.php"><?php echo $hesklang['profile_settings']; ?></a>)<br />
|
(<a href="profile.php"><?php echo $hesklang['profile_settings']; ?></a>)<br />
|
||||||
<?php if (empty($ticket['email'])) { ?>
|
<label><input type="checkbox" name="no_notify" value="1" <?php if (empty($ticket['email'])) { echo 'checked="checked" disabled'; } ?>> <?php echo $hesklang['dsen']; ?></label><br/><br/>
|
||||||
<label><input type="checkbox" name="no_notify" value="1" checked="checked" disabled> <?php echo $hesklang['dsen']; ?></label><br/><br/>
|
<?php if (empty($ticket['email'])) {
|
||||||
<input type="hidden" name="no_notify" value="1">
|
echo '<input type="hidden" name="no_notify" value="1">';
|
||||||
<?php } else { ?>
|
} ?>
|
||||||
<label><input type="checkbox" name="no_notify" value="1" <?php if (!$_SESSION['default_notify_customer_email']) { echo 'checked'; } ?>> <?php echo $hesklang['dsen']; ?></label><br/><br/>
|
|
||||||
<?php } ?>
|
|
||||||
<input type="hidden" name="orig_id" value="<?php echo $ticket['id']; ?>" />
|
<input type="hidden" name="orig_id" value="<?php echo $ticket['id']; ?>" />
|
||||||
<input type="hidden" name="token" value="<?php hesk_token_echo(); ?>" />
|
<input type="hidden" name="token" value="<?php hesk_token_echo(); ?>" />
|
||||||
<input class="btn btn-default" type="submit" value="<?php echo $hesklang['submit_reply']; ?>" />
|
<input class="btn btn-default" type="submit" value="<?php echo $hesklang['submit_reply']; ?>" />
|
||||||
|
@ -256,14 +256,6 @@ require_once(HESK_PATH . 'inc/show_admin_nav.inc.php');
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
|
||||||
<label for="default_notify_customer_email" class="col-sm-3 control-label"><?php echo $hesklang['notify_customer_email']; ?>:</label>
|
|
||||||
<div class="col-sm-9">
|
|
||||||
<div class="checkbox">
|
|
||||||
<label><input type="checkbox" name="default_notify_customer_email" value="1" <?php if (empty($_SESSION['new']['default_notify_customer_email'])) {echo 'checked="checked"';}?>> <?php echo $hesklang['notify_customer_email_text']; ?></label>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="autoRefresh" class="col-sm-3 control-label"><?php echo $hesklang['ticket_auto_refresh']; ?></label>
|
<label for="autoRefresh" class="col-sm-3 control-label"><?php echo $hesklang['ticket_auto_refresh']; ?></label>
|
||||||
@ -449,7 +441,6 @@ function update_profile() {
|
|||||||
$_SESSION['new']['notify_note'] = empty($_POST['notify_note']) ? 0 : 1;
|
$_SESSION['new']['notify_note'] = empty($_POST['notify_note']) ? 0 : 1;
|
||||||
$_SESSION['new']['notify_note_unassigned'] = empty($_POST['notify_note_unassigned']) ? 0 : 1;
|
$_SESSION['new']['notify_note_unassigned'] = empty($_POST['notify_note_unassigned']) ? 0 : 1;
|
||||||
$_SESSION['new']['notify_pm'] = empty($_POST['notify_pm']) ? 0 : 1;
|
$_SESSION['new']['notify_pm'] = empty($_POST['notify_pm']) ? 0 : 1;
|
||||||
$_SESSION['new']['default_notify_customer_email'] = empty($_POST['default_notify_customer_email']) ? 1 : 0;
|
|
||||||
|
|
||||||
/* Any errors? */
|
/* Any errors? */
|
||||||
if (strlen($hesk_error_buffer))
|
if (strlen($hesk_error_buffer))
|
||||||
@ -480,8 +471,7 @@ function update_profile() {
|
|||||||
`notify_assigned`='".intval($_SESSION['new']['notify_assigned'])."' ,
|
`notify_assigned`='".intval($_SESSION['new']['notify_assigned'])."' ,
|
||||||
`notify_pm`='".intval($_SESSION['new']['notify_pm'])."',
|
`notify_pm`='".intval($_SESSION['new']['notify_pm'])."',
|
||||||
`notify_note`='".intval($_SESSION['new']['notify_note'])."',
|
`notify_note`='".intval($_SESSION['new']['notify_note'])."',
|
||||||
`notify_note_unassigned`='".intval($_SESSION['new']['notify_note_unassigned'])."',
|
`notify_note_unassigned`='".intval($_SESSION['new']['notify_note_unassigned'])."'
|
||||||
`default_notify_customer_email`='".intval($_SESSION['new']['default_notify_customer_email'])."'
|
|
||||||
WHERE `id`='".intval($_SESSION['id'])."' LIMIT 1"
|
WHERE `id`='".intval($_SESSION['id'])."' LIMIT 1"
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -10,6 +10,7 @@ hesk_dbConnect();
|
|||||||
hesk_dbQuery("ALTER TABLE `".hesk_dbEscape($hesk_settings['db_pfix'])."attachments` DROP COLUMN `note_id`");
|
hesk_dbQuery("ALTER TABLE `".hesk_dbEscape($hesk_settings['db_pfix'])."attachments` DROP COLUMN `note_id`");
|
||||||
hesk_dbQuery("ALTER TABLE `".hesk_dbEscape($hesk_settings['db_pfix'])."notes` DROP COLUMN `edit_date`");
|
hesk_dbQuery("ALTER TABLE `".hesk_dbEscape($hesk_settings['db_pfix'])."notes` DROP COLUMN `edit_date`");
|
||||||
hesk_dbQuery("ALTER TABLE `".hesk_dbEscape($hesk_settings['db_pfix'])."notes` DROP COLUMN `number_of_edits`");
|
hesk_dbQuery("ALTER TABLE `".hesk_dbEscape($hesk_settings['db_pfix'])."notes` DROP COLUMN `number_of_edits`");
|
||||||
|
hesk_dbQuery("ALTER TABLE `".hesk_dbEscape($hesk_settings['db_pfix'])."users` DROP COLUMN `default_notify_customer_email`");
|
||||||
|
|
||||||
|
|
||||||
if ($updateSuccess) {
|
if ($updateSuccess) {
|
||||||
|
@ -72,8 +72,6 @@ $hesklang['user_deactivated'] = 'User has been deactivated';
|
|||||||
$hesklang['active_user'] = 'Is active user';
|
$hesklang['active_user'] = 'Is active user';
|
||||||
$hesklang['self_deactivation'] = 'You cannot deactivate yourself!';
|
$hesklang['self_deactivation'] = 'You cannot deactivate yourself!';
|
||||||
$hesklang['inactive_user'] = 'Your account is currently inactive. Contact an administrator for more information.';
|
$hesklang['inactive_user'] = 'Your account is currently inactive. Contact an administrator for more information.';
|
||||||
$hesklang['notify_customer_email'] = 'Emails to customer on reply';
|
|
||||||
$hesklang['notify_customer_email_text'] = 'Don\'t send email notifications of replies to the customer by default';
|
|
||||||
$hesklang['cant_edit_admin'] = 'You cannot edit the God Admin (User ID = 1)';
|
$hesklang['cant_edit_admin'] = 'You cannot edit the God Admin (User ID = 1)';
|
||||||
$hesklang['notifications_disabled_info'] = 'Changing notifications settings has been disabled by your administrator.';
|
$hesklang['notifications_disabled_info'] = 'Changing notifications settings has been disabled by your administrator.';
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user