gosa-project / gosa-plugins-schoolmanager

GOsa Add-On for Managing Schools
GNU General Public License v2.0
3 stars 5 forks source link

smintro: after clearing class, course and parent groups, statistics are broken #56

Open sunweaver opened 2 years ago

sunweaver commented 2 years ago

See this screenshot, no numbers are shown.

gosa-smintro

sunweaver commented 2 years ago

@dzatoah You have to dump the cleanup_stats into the smarty-template and head it back via the POST requests response... In PHP, propoerties of a class are not all time persistent but only exist for the time of the PHP script execution. Next click and all collected data is gone again.

With smarty you have to pipe stuff to remember into the POST request and make sure the template sends it back unchanged via the response header.