plegall / Piwigo-community

11 stars 23 forks source link

edit photos, unknown column rank #67

Closed plegall closed 2 years ago

plegall commented 2 years ago

If your Piwigo is configured to sort photos by manual order (ie rank), then on the edit photos page of Community, you get a fatal error "unknown column rank". This is related to https://github.com/Piwigo/Piwigo/issues/1616 but even with this issue fixed, the problem still exists. That's because we're considered to be in section "categories" and include/section_init does:

if ('categories' == $page['section'] and !isset($page['flat']))
{
  $conf['order_by'] = $conf['order_by_inside_category'];
}