bug-fix-patches
# removed place holders in agent profiles # added checkbox style class in agent blade file # added mtutators in ticket_form_data.php model # changed priority field saving method in ticket creation form at clinet side # Fetched only required data in client panel form and saving ticket #184 solevd.
This commit is contained in:
@@ -734,7 +734,7 @@ class UserController extends Controller
|
||||
|
||||
return redirect('profile-edit')->with('success1', Lang::get('lang.password_updated_sucessfully'));
|
||||
} catch (Exception $e) {
|
||||
return redirect('profile-edit')->with('fails', $e->getMessage());
|
||||
return redirect('profile-edit')->with('fails1', $e->getMessage());
|
||||
}
|
||||
} else {
|
||||
return redirect('profile-edit')->with('fails1', Lang::get('lang.password_was_not_updated_incorrect_old_password'));
|
||||
|
@@ -146,7 +146,7 @@ class FormController extends Controller
|
||||
*/
|
||||
public function postedForm(User $user, ClientRequest $request, Ticket $ticket_settings, Ticket_source $ticket_source, Ticket_attachments $ta, CountryCode $code)
|
||||
{
|
||||
$form_extras = $request->except('Name', 'Phone', 'Email', 'Subject', 'Details', 'helptopic', '_wysihtml5_mode', '_token', 'mobile', 'Code');
|
||||
$form_extras = $request->except('Name', 'Phone', 'Email', 'Subject', 'Details', 'helptopic', '_wysihtml5_mode', '_token', 'mobile', 'Code', 'priority');
|
||||
$name = $request->input('Name');
|
||||
$phone = $request->input('Phone');
|
||||
if ($request->input('Email')) {
|
||||
@@ -179,7 +179,7 @@ class FormController extends Controller
|
||||
|
||||
// $priority = $ticket_settings->first()->priority;
|
||||
$default_priority = Ticket_Priority::where('is_default', '=', 1)->first();
|
||||
$user_priority = CommonSettings::where('id', '=', 6)->first();
|
||||
$user_priority = CommonSettings::select('status')->where('option_name', '=', 'user_priority')->first();
|
||||
if (!($request->input('priority'))) {
|
||||
$priority = $default_priority->priority_id;
|
||||
} else {
|
||||
|
@@ -4,8 +4,39 @@ namespace App\Model\helpdesk\Ticket;
|
||||
|
||||
use App\BaseModel;
|
||||
|
||||
class Ticket_Form_Data extends BaseModel
|
||||
{
|
||||
class Ticket_Form_Data extends BaseModel {
|
||||
|
||||
protected $table = 'ticket_form_data';
|
||||
protected $fillable = ['id', 'ticket_id', 'title', 'content', 'created_at', 'updated_at'];
|
||||
|
||||
public function getFieldKeyLabel() {
|
||||
$value = $this->attributes['title'];
|
||||
$fields = new \App\Model\helpdesk\Form\Fields();
|
||||
$field = $fields->where('name', $value)->first();
|
||||
if ($field) {
|
||||
$value = $field->label;
|
||||
}
|
||||
return $value;
|
||||
}
|
||||
|
||||
public function isHidden(){
|
||||
$check = false;
|
||||
$value = $this->attributes['title'];
|
||||
$fields = new \App\Model\helpdesk\Form\Fields();
|
||||
$field = $fields->where('name', $value)->first();
|
||||
if ($field && $field->type=='hidden') {
|
||||
$check = true;
|
||||
}
|
||||
return $check;
|
||||
}
|
||||
|
||||
public function getHidden(){
|
||||
$value = $this->attributes['title'];
|
||||
$fields = new \App\Model\helpdesk\Form\Fields();
|
||||
$field = $fields->where('name', $value)->first();
|
||||
if ($field && $field->type=='hidden') {
|
||||
return $field->label;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user