glFusion / glfusion

glFusion CMS - Advanced Content Management with Style
https://www.glfusion.org
GNU General Public License v2.0
3 stars 0 forks source link

Staticpage AJAX status toggle doesn't call PLG_itemSaved() for all items #394

Closed leegarner closed 3 years ago

leegarner commented 4 years ago

When toggling the staticpage enabled/disabled status from the admin list, PLG_itemSaved() is only called for the last page since it's called outside the loop.

It would probably be better to toggle only the specific page rather than updating all, but for now moving the call to PLG_itemSaved() inside the loop will work around this.