bug-fix-patch

# Removed department's dependency on help topic in client panel
mentioned in #361
This commit is contained in:
Manish Verma
2016-12-31 11:59:44 +05:30
parent 2c207f7026
commit 4b871659e1

View File

@@ -156,15 +156,7 @@ class = "active"
$helptopic = App\Model\helpdesk\Manage\Help_topic::where('status', '=', 1)->get();
?>
<select name="helptopic" class="form-control" id="selectid">
<?php
$system_default_department = App\Model\helpdesk\Settings\System::where('id', '=', 1)->first();
if (isset($system_default_department->department)) {
$department_relation_helptopic = App\Model\helpdesk\Manage\Help_topic::where('department', '=', $system_default_department->department)->first();
$default_helptopic = $department_relation_helptopic->id;
} else {
$default_helptopic = 0;
}
?>
@foreach($helptopic as $topic)
<option value="{!! $topic->id !!}">{!! $topic->topic !!}</option>
@endforeach