Page 1 of 1

Find a Ticket - NuMods to Mods for HESK

Posted: Thu Aug 18, 2016 5:32 am
by Ghuldarog
Hi,

I recently upgraded from NuMods to Mods for HESK.
Back in NuMods I could use the Find a Ticket function to search for all tickets on a particular date by simply not entering a keyword into the Search For field.

But ever since I upgraded to Mods for HESK it seems that the Search For field now forces you to type in a keyword before you can search.
Is there any way I disable this requirement? I'd like to be able to search purely by date rather than a keyword.

Re: Find a Ticket - NuMods to Mods for HESK

Posted: Fri Aug 19, 2016 3:15 pm
by mkoch227
That field shouldn't be required, whoops :lol: .

Open inc/show_search_form.inc.php and find:

(lines 412-417)

Code: Select all

<input class="form-control" type="text" name="q" size="30" <?php if (isset($q)) {
    echo 'value="' . $q . '"';
} ?>
    data-error="<?php echo htmlspecialchars($hesklang['this_field_is_required']); ?>"
    required>
<div class="help-block with-errors"></div>
replace with:

Code: Select all

<input class="form-control" type="text" name="q" size="30" <?php if (isset($q)) {
    echo 'value="' . $q . '"';
} ?>>
Save, upload, and test.

Re: Find a Ticket - NuMods to Mods for HESK

Posted: Mon Aug 22, 2016 4:05 am
by Ghuldarog
Ah, I can't believe I missed that.
Upon making the changes it's now working as before.

You're the man!
Thanks!