All Modification found in One Place
Posted: Tue Oct 13, 2015 11:08 pm
Im going to post here all modification i found in one place.
there is a lot of content on this forum that requires a lot of time to search.
Required Field in admin + Red Asterik
there is a lot of content on this forum that requires a lot of time to search.
Required Field in admin + Red Asterik
Klemen wrote:Fields are not required from admin panel because staff may not always have all the information you can request from a customer.
To make it required, you would need to modify file "admin/admin_submit_ticket.php".
I haven't tested it, but:
1. find line2. find the first else ABOVE that line.Code: Select all
$tmpvar[$k]=hesk_makeURL(nl2br(hesk_input($_POST[$k])))
3. ABOVE that "else" addCode: Select all
elseif ($v['req']) { $tmpvar[$k]=hesk_makeURL(nl2br(hesk_input($_POST[$k]))); if (!strlen($tmpvar[$k])) { $hesk_error_buffer[$k]=$hesklang['fill_all'].': '.$v['name']; } }
Klemen wrote:Also, to show the red asterisk, in "admin/new_ticket.php" replacewithCode: Select all
$v['req'] = '';
Twice!Code: Select all
$v['req'] = $v['req'] ? '<font class="important">*</font>' : '';