Osticket: 1.10 Agent welcome email selection is missing

Created on 18 Jan 2016  路  9Comments  路  Source: osTicket/osTicket

In 1.9.12, when adding a new agent there is a checkbox that allows sending the agent welcome email when creating the agent account. That selection seems to be missing in 1.10. If it moved to another screen, I can't find it.

regression bug

Most helpful comment

To make this work, I added the following in include/staff/staff.inc.php at line 175:

<?php if ($action=='create') { ?>
    <label class="checkbox">
        <input type="checkbox" name="welcome_email" id="welcome-email" checked="checked"/>
        <?php echo __('Send Welcome Email'); ?>
    </label>
<?php } ?>

It appears the backend code still understands how to send the email. The first line assures the checkbox only shows up when adding an agent. Also, this assumes you want to send the welcome emails by default as it automatically checks the box.

All 9 comments

To make this work, I added the following in include/staff/staff.inc.php at line 175:

<?php if ($action=='create') { ?>
    <label class="checkbox">
        <input type="checkbox" name="welcome_email" id="welcome-email" checked="checked"/>
        <?php echo __('Send Welcome Email'); ?>
    </label>
<?php } ?>

It appears the backend code still understands how to send the email. The first line assures the checkbox only shows up when adding an agent. Also, this assumes you want to send the welcome emails by default as it automatically checks the box.

we have added same code at same place.
we are using osticket version 1.10
Fields is displaying while create the agent.
But no email is going to agent.

I just installed osTicket Version v1.10 (901e5ea) and have the same problem... With the code of @troycarpenter it worked... I added at line 195

Thanks for the code @troycarpenter. This fixed my installation as well. New user to osTicket so I didn't know where to start to enable it. Whats weird is that it sent it out twice before but then it suddenly stopped. Thanks again.

@troycarpenter the code should be inserted at line 198 with generate better output
image

as this
image

Thanks @akshaynikhare this helped big time! I'm now only wondering why this issue was opened just about 4 years ago and hasn't yet been committed to the code base after 4 versions?

@ManZosh

Because this is the incorrect way of addressing the issue. The correct fix is found below and should be added to the next release once finalized:

Adding the checkbox back is incorrect as we now determine the Welcome Email on wether or not you set a password for the new Agent and if the Authentication Backend is external (ie. Active Directory). If a password is not set and the Authentication Backend is Local then we send a Welcome Email so the Agent can set their password and gain access to the system. If no password is set and the Authentication Backend is AD for example, we do not send the welcome email as they do not need to set their password as they use their AD credentials to login. The Help Tip for the old checkbox used to say If unchecked, you will need to set password and communicate the log-in information to the new staff. so if a password is set it's understood for the creator of the account to communicate the login information to the Agent in question.

Cheers.

@JediKev so you meen ,
This is some ware relate to that active directory plugin of ostickets

@akshaynikhare

No, I just mean that the previous fix suggested above is an incorrect approach to addressing the issue.

Cheers.

Was this page helpful?
0 / 5 - 0 ratings