bug-fix-patch
# Removed department's dependency on help topic in client panel mentioned in #361
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user