Skip to content

[FIX] PluginSubscribeNewsletter: fix an issue to allow plugin rendering to be displayed in wiki page for logged in users

Lupundu Yan requested to merge yan.lupundu/tiki:yan.tiki into master

When using the PluginSubscribeNewsletter in a wiki page, the plugin gave no results. So after analysis of the plugin I found that the problem was in the template file.

According to the contents of the template file, the rendering of the plugin will be displayed if the {if empty($user)} condition evaluates to true, but as soon as a user is connected to a Tiki instance, it is stored in the variable $user and therefore this variable will never be empty except in the case of an anonymous user (not logged in).

So, this condition seemed to be the cause of the problem and I had to remove it. Now the plugin works correctly.

Links:

Edited by luci

Merge request reports