Error incomponents - filtering
MULTINOVUM sp. z o.o.
New Member
Posts: 15
8 năm 11 tháng trước #1137
bởi MULTINOVUM sp. z o.o.
Error incomponents - filtering was created by MULTINOVUM sp. z o.o.
Hi!
For fewdays I noticed error with filtering. After added new item in my component I have nothing in my itemst list (backend).
It seems to filter when I not choose any filter, or filter like "show nothing".
I try to find error and I think I found.
It is in models/mycomponent.php
I change:
$filter_created_by = $this->state->get("filter.created_by");
if ($filter_created_by != '') {
$query->where("a.`created_by` = '".$db->escape($filter_created_by)."'");
}
to
$filter_created_by = $this->state->get("filter.created_by");
if ($filter_created_by') {
$query->where("a.`created_by` = '".$db->escape($filter_created_by)."'");
}
In components I create few days ago that second way was made, but from yesterday the first way
I hope it help but if you find the better way, tell me, please
For fewdays I noticed error with filtering. After added new item in my component I have nothing in my itemst list (backend).
It seems to filter when I not choose any filter, or filter like "show nothing".
I try to find error and I think I found.
It is in models/mycomponent.php
I change:
$filter_created_by = $this->state->get("filter.created_by");
if ($filter_created_by != '') {
$query->where("a.`created_by` = '".$db->escape($filter_created_by)."'");
}
to
$filter_created_by = $this->state->get("filter.created_by");
if ($filter_created_by') {
$query->where("a.`created_by` = '".$db->escape($filter_created_by)."'");
}
In components I create few days ago that second way was made, but from yesterday the first way
I hope it help but if you find the better way, tell me, please
Vui lòng Đăng nhập hoặc Tạo tài khoản để tham gia cuộc hội thoại.
Thời gian tải trang: 0.052 giây