Custom form issue and exapmle.env

Fixed Github issues regarding rendering of custom form data in ticket detail page.
Following issues have been raised regarding this issue
#416
#462
#553
This commit is contained in:
Manish Verma
2018-08-16 10:36:35 +05:30
parent 8148bbd920
commit ed2d5b466f
4 changed files with 21 additions and 4 deletions

View File

@@ -126,7 +126,7 @@ class TicketController extends Controller
$source = Ticket_source::where('name', '=', 'agent')->first();
$headers = null;
$help = Help_topic::where('id', '=', $helptopic)->first();
$form_data = null;
$form_data = $request->except('name', 'phone', 'email', 'subject', 'body', 'helptopic', '_wysihtml5_mode', '_token', 'mobile', 'code', 'priority', 'attachment', 'first_name', 'last_name', 'sla', 'duedate', 'assignto');
$auto_response = 0;
$status = 1;
if ($phone != null || $mobile_number != null) {

View File

@@ -31,7 +31,6 @@ class ClientRequest extends Request
{
$check = $this->check(new CommonSettings());
if ($check != 0) {
return $check;
$custom_rule = $this->getCustomRule();
$rules = array_merge($check, $custom_rule);

18
example.env Normal file
View File

@@ -0,0 +1,18 @@
APP_ENV=production
APP_DEBUG=false
APP_KEY=SomeRandomString
DB_TYPE=
DB_HOST=
DB_PORT=
DB_DATABASE=
DB_USERNAME=
DB_PASSWORD=
DB_INSTALL=%0%
MAIL_DRIVER=smtp
MAIL_HOST=mailtrap.io
MAIL_PORT=2525
MAIL_USERNAME=null
MAIL_PASSWORD=null
CACHE_DRIVER=file
SESSION_DRIVER=file
QUEUE_DRIVER=sync

View File

@@ -752,10 +752,10 @@ if ($thread->title != "") {
@endif
@if($conversation->id == $ij->id)
<?php $ticket_form_datas = App\Model\helpdesk\Ticket\Ticket_Form_Data::where('ticket_id', '=', $tickets->ticket_id)->select('id')->get(); ?>
<?php $ticket_form_datas = App\Model\helpdesk\Ticket\Ticket_Form_Data::where('ticket_id', '=', $tickets->id)->get();
?>
@if(isset($ticket_form_datas))
<br/>