Closed mdius closed 1 year ago
On there second part, I changed line 182 from:
echo '<li data-id="' . ($selectedatt['akID'] > 0 ? $selectedatt['akID'] : $selectedatt['type']) . '" data-type="' . $selectedatt['type'] . '" class="clearfix list-group-item"><a href="#" class="attremove pull-right float-end"> <i class="fa fa-times"></i></a><i class="fa fa-arrows-v fa-arrows-alt-v"></i> ' . ($selectedatt['type'] == 'attr' ? $attlookup[$selectedatt['akID']] : $typelookup[$selectedatt['type']]);
To
echo '<li data-id="' . ($selectedatt['akID'] > 0 ? $selectedatt['akID'] : $selectedatt['type']) . '" data-type="' . $selectedatt['type'] . '" class="clearfix list-group-item"><a href="#" class="attremove pull-right float-end"> <i class="fa fa-times"></i></a><i class="fa fa-arrows-v fa-arrows-alt-v"></i> ' . ($selectedatt['type'] == 'attr' ? empty($attlookup[$selectedatt['akID']]) ? '<b>DELETE *Removed Attributes* DELETE</b>' : $attlookup[$selectedatt['akID']] : $typelookup[$selectedatt['type']]);
I believe this one has been fixed in the master branch
This happens on my fresh install and my test site. But when I try to add a new product filter I get the following error.
Putting the following just before that line seems to fix it.
Also, I get an error on my test site. It appears to be if you delete an attribute before removing it from your filter, it causes the following error. It does not cause the error if I switch it to PHP 7.4.
I have not found a way to fix this yet.