Skip to content

Commit a027903

Browse files
committed
Changed ticket "attachment text" search form field element name
1 parent 75edbe1 commit a027903

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

src/Controllers/TicketsController.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class TicketsController extends Controller
4141
'tags' => ['has_not_tags', 'has_any_tag', 'any', 'all', 'none'],
4242
];
4343
protected $a_search_fields_text = ['subject', 'content', 'intervention'];
44-
protected $a_search_fields_text_special = ['comments', 'attachment_name', 'any_text_field'];
44+
protected $a_search_fields_text_special = ['comments', 'attachment_text', 'any_text_field'];
4545
protected $a_search_fields_date = ['start_date', 'limit_date', 'created_at', 'completed_at', 'updated_at'];
4646
protected $a_search_fields_date_types = ['from', 'until', 'exact_year', 'exact_month', 'exact_day'];
4747

@@ -176,8 +176,8 @@ public function getTicketCollectionFrom($ticketList)
176176
});
177177
}
178178

179-
if (isset($search_fields['attachment_name'])){
180-
$collection->whereIn('panichd_tickets.id', $this->listTicketsWhereAttachmentHas($search_fields['attachment_name']));
179+
if (isset($search_fields['attachment_text'])){
180+
$collection->whereIn('panichd_tickets.id', $this->listTicketsWhereAttachmentHas($search_fields['attachment_text']));
181181
}
182182

183183
if (isset($search_fields['any_text_field'])) {

src/Views/tickets/search/form.blade.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -238,12 +238,12 @@
238238
</div>
239239

240240
@if ($setting->grab('ticket_attachments_feature'))
241-
<div class="form-group row @if(isset($search_fields['attachment_name'])) bg-info @endif"><!-- ATTACHMENT FILENAME -->
242-
{!! CollectiveForm::label('attachment_name', trans('panichd::lang.searchform-attachment_text') . trans('panichd::lang.colon'), [
241+
<div class="form-group row @if(isset($search_fields['attachment_text'])) bg-info @endif"><!-- ATTACHMENT FILENAME -->
242+
{!! CollectiveForm::label('attachment_text', trans('panichd::lang.searchform-attachment_text') . trans('panichd::lang.colon'), [
243243
'class' => 'col-lg-3 col-form-label'
244244
]) !!}
245245
<div class="col-lg-9">
246-
{!! CollectiveForm::text('attachment_name', $search_fields['attachment_name'] ?? null , ['class' => 'form-control']) !!}
246+
{!! CollectiveForm::text('attachment_text', $search_fields['attachment_text'] ?? null , ['class' => 'form-control']) !!}
247247
</div>
248248
</div>
249249
@endif

0 commit comments

Comments
 (0)