Merge branch '640-email-required' into 'master'

Resolve "Email required issue"

See merge request mike-koch/Mods-for-HESK!105
This commit is contained in:
Mike Koch 2018-07-18 01:38:32 +00:00
commit 823874e0a1

View File

@ -319,7 +319,6 @@ function print_add_ticket()
<!-- START FORM --> <!-- START FORM -->
<div class="form"> <div class="form">
<h2><?php hesk_showTopBar($hesklang['submit_ticket']); ?></h2> <h2><?php hesk_showTopBar($hesklang['submit_ticket']); ?></h2>
<small><?php echo $hesklang['use_form_below']; ?></small>
<div class="blankSpace"></div> <div class="blankSpace"></div>
<?php <?php
// Service messages // Service messages
@ -372,7 +371,7 @@ function print_add_ticket()
} ?> <?php if ($hesk_settings['detect_typos']) { } ?> <?php if ($hesk_settings['detect_typos']) {
echo ' onblur="Javascript:hesk_suggestEmail(\'email\', \'email_suggestions\', 1, 0)"'; echo ' onblur="Javascript:hesk_suggestEmail(\'email\', \'email_suggestions\', 1, 0)"';
} ?> placeholder="<?php echo htmlspecialchars($hesklang['email']); ?>" } ?> placeholder="<?php echo htmlspecialchars($hesklang['email']); ?>"
data-error="<?php echo htmlspecialchars($hesklang['enter_valid_email']); ?>" required> <?php if ($hesk_settings['require_email']): ?>data-error="<?php echo htmlspecialchars($hesklang['enter_valid_email']); ?>" required<?php endif; ?>>
<div class="help-block with-errors"></div> <div class="help-block with-errors"></div>
</div> </div>