bug-fix-patch
This commit is contained in:
@@ -143,15 +143,16 @@ class AgentLayout
|
|||||||
|
|
||||||
public function inbox()
|
public function inbox()
|
||||||
{
|
{
|
||||||
$ticket = $this->tickets();
|
$table = $this->tickets();
|
||||||
if ($this->auth->role == 'admin') {
|
if (Auth::user()->role == 'agent') {
|
||||||
return $ticket->whereIn('status', [1, 7])->select('id');
|
$id = Auth::user()->primary_dpt;
|
||||||
} elseif ($this->auth->role == 'agent') {
|
$table = $table->where('tickets.dept_id', '=', $id)->orWhere('assigned_to', '=', Auth::user()->id);
|
||||||
return $ticket->whereIn('status', [1, 7])
|
|
||||||
->where('dept_id', '=', $this->auth->primary_dpt)
|
|
||||||
->orWhere('assigned_to', '=', Auth::user()->id)
|
|
||||||
->select('id');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return $table->Join('ticket_status', function ($join) {
|
||||||
|
$join->on('ticket_status.id', '=', 'tickets.status')
|
||||||
|
->whereIn('ticket_status.id', [1, 7]);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
public function overdues()
|
public function overdues()
|
||||||
|
@@ -1144,5 +1144,6 @@ return [
|
|||||||
'user-account-is-deleted' => 'This user account has been deleted.',
|
'user-account-is-deleted' => 'This user account has been deleted.',
|
||||||
'restore-user' => 'Restore user account',
|
'restore-user' => 'Restore user account',
|
||||||
'delete-account-caution-info' => 'Please note this account may still have open tickets in the system.',
|
'delete-account-caution-info' => 'Please note this account may still have open tickets in the system.',
|
||||||
|
'reply-can-not-be-empty' => 'Reply can not be blank. Please enter your reply.',
|
||||||
|
|
||||||
];
|
];
|
||||||
|
@@ -1581,5 +1581,6 @@ return [
|
|||||||
'user-account-is-deleted' => 'This user account has been deleted.',
|
'user-account-is-deleted' => 'This user account has been deleted.',
|
||||||
'restore-user' => 'Restore user account',
|
'restore-user' => 'Restore user account',
|
||||||
'delete-account-caution-info' => 'Please note this account may still have open tickets in the system.',
|
'delete-account-caution-info' => 'Please note this account may still have open tickets in the system.',
|
||||||
|
'reply-can-not-be-empty' => 'Reply can not be blank. Please enter your reply.',
|
||||||
|
|
||||||
];
|
];
|
||||||
|
@@ -1552,5 +1552,6 @@ return [
|
|||||||
'user-account-is-deleted' => 'This user account has been deleted.',
|
'user-account-is-deleted' => 'This user account has been deleted.',
|
||||||
'restore-user' => 'Restore user account',
|
'restore-user' => 'Restore user account',
|
||||||
'delete-account-caution-info' => 'Please note this account may still have open tickets in the system.',
|
'delete-account-caution-info' => 'Please note this account may still have open tickets in the system.',
|
||||||
|
'reply-can-not-be-empty' => 'Reply can not be blank. Please enter your reply.',
|
||||||
|
|
||||||
];
|
];
|
||||||
|
@@ -1104,4 +1104,5 @@ return [
|
|||||||
'user-account-is-deleted' => 'This user account has been deleted.',
|
'user-account-is-deleted' => 'This user account has been deleted.',
|
||||||
'restore-user' => 'Restore user account',
|
'restore-user' => 'Restore user account',
|
||||||
'delete-account-caution-info' => 'Please note this account may still have open tickets in the system.',
|
'delete-account-caution-info' => 'Please note this account may still have open tickets in the system.',
|
||||||
|
'reply-can-not-be-empty' => 'Reply can not be blank. Please enter your reply.',
|
||||||
];
|
];
|
||||||
|
@@ -1597,5 +1597,6 @@ return [
|
|||||||
'user-account-is-deleted' => 'This user account has been deleted.',
|
'user-account-is-deleted' => 'This user account has been deleted.',
|
||||||
'restore-user' => 'Restore user account',
|
'restore-user' => 'Restore user account',
|
||||||
'delete-account-caution-info' => 'Please note this account may still have open tickets in the system.',
|
'delete-account-caution-info' => 'Please note this account may still have open tickets in the system.',
|
||||||
|
'reply-can-not-be-empty' => 'Reply can not be blank. Please enter your reply.',
|
||||||
|
|
||||||
];
|
];
|
||||||
|
@@ -1542,5 +1542,6 @@ return [
|
|||||||
'user-account-is-deleted' => 'This user account has been deleted.',
|
'user-account-is-deleted' => 'This user account has been deleted.',
|
||||||
'restore-user' => 'Restore user account',
|
'restore-user' => 'Restore user account',
|
||||||
'delete-account-caution-info' => 'Please note this account may still have open tickets in the system.',
|
'delete-account-caution-info' => 'Please note this account may still have open tickets in the system.',
|
||||||
|
'reply-can-not-be-empty' => 'Reply can not be blank. Please enter your reply.',
|
||||||
|
|
||||||
];
|
];
|
||||||
|
@@ -1051,4 +1051,5 @@ return [
|
|||||||
'user-account-is-deleted' => 'This user account has been deleted.',
|
'user-account-is-deleted' => 'This user account has been deleted.',
|
||||||
'restore-user' => 'Restore user account',
|
'restore-user' => 'Restore user account',
|
||||||
'delete-account-caution-info' => 'Please note this account may still have open tickets in the system.',
|
'delete-account-caution-info' => 'Please note this account may still have open tickets in the system.',
|
||||||
|
'reply-can-not-be-empty' => 'Reply can not be blank. Please enter your reply.',
|
||||||
];
|
];
|
||||||
|
@@ -364,18 +364,27 @@ alert(h+20);
|
|||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
<div class="form-group ">
|
<div class="form-group ">
|
||||||
<textarea class="form-control" name="comment" cols="30" rows="8"></textarea>
|
<textarea class="form-control" id="reply-input" name="comment" cols="30" rows="8"></textarea>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="text-right">
|
<div class="text-right">
|
||||||
<button type="submit" class="btn btn-custom btn-lg">{!! Lang::get('lang.post_comment') !!}</button>
|
<button type="submit" onClick="return checkFunction();" class="btn btn-custom btn-lg">{!! Lang::get('lang.post_comment') !!}</button>
|
||||||
</div>
|
</div>
|
||||||
{!! Form::close() !!}
|
{!! Form::close() !!}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
|
function checkFunction() {
|
||||||
|
var x;
|
||||||
|
x = document.getElementById("reply-input").value;
|
||||||
|
if (x == "") {
|
||||||
|
alert("{{Lang::get('lang.reply-can-not-be-empty')}}");
|
||||||
|
return false;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
$("#cc_page").on('click', '.search_r', function () {
|
$("#cc_page").on('click', '.search_r', function () {
|
||||||
var search_r = $('a', this).attr('id');
|
var search_r = $('a', this).attr('id');
|
||||||
$.ajax({
|
$.ajax({
|
||||||
|
Reference in New Issue
Block a user