Bug-fix-patch
Fixed bugs for priority and email exception throw.
This commit is contained in:
@@ -156,10 +156,10 @@ class PriorityController extends Controller
|
||||
$tk_priority->ispublic = $request->ispublic;
|
||||
$tk_priority->save();
|
||||
if ($request->input('default_priority') == 'on') {
|
||||
Ticket_Priority::where('is_default', '>', '0')
|
||||
->update(['is_default' => '0']);
|
||||
Ticket_Priority::where('is_default', '=', 1)
|
||||
->update(['is_default' => 0]);
|
||||
Ticket_Priority::where('priority_id', '=', $priority_id)
|
||||
->update(['is_default' => $priority_id]);
|
||||
->update(['is_default' => 1]);
|
||||
}
|
||||
|
||||
return \Redirect::route('priority.index')->with('success', (Lang::get('lang.priority_successfully_updated')));
|
||||
|
Reference in New Issue
Block a user