Find a Ticket - NuMods to Mods for HESK

Forum dedicated to Mods for HESK created by Mike Koch

Moderator: mkoch227

Post Reply
Ghuldarog
Posts: 5
Joined: Mon Jul 21, 2014 2:34 am

Find a Ticket - NuMods to Mods for HESK

Post 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.
mkoch227
Posts: 666
Joined: Wed Jul 04, 2012 3:37 pm

Re: Find a Ticket - NuMods to Mods for HESK

Post 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.
Mike, Lead Developer of Image HESK: A surprisingly simple, user-friendly and FREE help desk software with integrated knowledgebase.
Ghuldarog
Posts: 5
Joined: Mon Jul 21, 2014 2:34 am

Re: Find a Ticket - NuMods to Mods for HESK

Post 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!
Post Reply