WebsiteBaker Community Forum

WebsiteBaker Support (2.12.x) => Modules => Topic started by: dbs on August 14, 2019, 09:34:05 AM

Title: OFA - sort by status active / inactive
Post by: dbs on August 14, 2019, 09:34:05 AM
In OneForAll 2.0.2.23, sorting by status active/inactive does not work in the backend. This is because all fields have the same content (a whitespace).

The following can help.
In modify.php create a new line after line 244 ($active_title = ...).

New line
Code: [Select]
$active = $item['active'] == 1 ? '<span style="display:none">1</span>' : '<span style="display:none">0</span>';
Then change line 254 from:
Code: [Select]
<span class="mod_<?php echo $mod_name;?>_active<?php echo $item['active'];?>_b" title="<?php echo $active_title;?>">& #160;</span>
Change to:
Code: [Select]
<span class="mod_<?php echo $mod_name;?>_active<?php echo $item['active'];?>_b" title="<?php echo $active_title;?>"><?php echo $active;?>;</span>
This may be a better way to solve it, but it works.