Fix ticket filters. (#820)
* Fix ticket filters. * change search ticket title. * fix search tickets utils.
This commit is contained in:
parent
3f68febdd7
commit
82d6f47eea
|
@ -59,7 +59,7 @@ class AdminPanelSearchTickets extends React.Component {
|
|||
<div className="admin-panel-all-tickets__container">
|
||||
<Header
|
||||
className="admin-panel-all-tickets__container__header"
|
||||
title={listConfig.title !== undefined ? listConfig.title : i18n('CUSTOM_LIST')}
|
||||
title={listConfig.title !== undefined ? listConfig.title : i18n('SEARCH_TICKETS')}
|
||||
description={i18n('SEARCH_TICKETS_DESCRIPTION')} />
|
||||
<Button
|
||||
className="admin-panel-all-tickets__container__show-filters-button"
|
||||
|
|
|
@ -44,8 +44,8 @@ export default {
|
|||
getFiltersFromParams(search = window.location.search) {
|
||||
let urlFilters = queryString.parse(search);
|
||||
delete urlFilters.page;
|
||||
const customTicketsList = window.customTicketList[urlFilters.custom*1];
|
||||
const customTicketsListFilters = customTicketsList ? customTicketsList.filters : undefined;
|
||||
const customTicketsList = urlFilters.custom && window.customTicketList && window.customTicketList[urlFilters.custom*1];
|
||||
const customTicketsListFilters = customTicketsList && customTicketsList.filters;
|
||||
|
||||
if(customTicketsListFilters) {
|
||||
const newFilters = {
|
||||
|
|
Loading…
Reference in New Issue