Fix favorite removal not working in admin menu

This commit is contained in:
Kijin Sung 2021-01-08 00:01:19 +09:00
parent 3fd7bf16c3
commit 9c9dedafa9
3 changed files with 3 additions and 11 deletions

View file

@ -21,7 +21,7 @@
<action name="procAdminRecompileCacheFile" type="controller" /> <action name="procAdminRecompileCacheFile" type="controller" />
<action name="procAdminLogout" type="controller" method="GET|POST" /> <action name="procAdminLogout" type="controller" method="GET|POST" />
<action name="procAdminInsertDefaultDesignInfo" type="controller" /> <action name="procAdminInsertDefaultDesignInfo" type="controller" />
<action name="procAdminToggleFavorite" type="controller" ruleset="toggleFavorite" /> <action name="procAdminToggleFavorite" type="controller" />
<action name="procAdminEnviromentGatheringAgreement" type="controller" /> <action name="procAdminEnviromentGatheringAgreement" type="controller" />
<action name="procAdminUpdateConfig" type="controller" /> <action name="procAdminUpdateConfig" type="controller" />
<action name="procAdminDeleteLogo" type="controller" /> <action name="procAdminDeleteLogo" type="controller" />

View file

@ -1,8 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<ruleset version="1.5.0">
<customrules />
<fields>
<field name="site_srl" required="true" rule="number" />
<field name="module_name" required="true" />
</fields>
</ruleset>

View file

@ -68,9 +68,9 @@
<a cond="!$favorite->title">{$lang->msg_not_founded}</a> <a cond="!$favorite->title">{$lang->msg_not_founded}</a>
<form class="remove" action="./" method="post"> <form class="remove" action="./" method="post">
<input type="hidden" name="module" value="admin" /> <input type="hidden" name="module" value="admin" />
<input type="hidden" name="act" value="" /> <input type="hidden" name="act" value="procAdminToggleFavorite" />
<input type="hidden" name="module_name" value="{$favorite->module}" /> <input type="hidden" name="module_name" value="{$favorite->module}" />
<input type="hidden" name="success_return_url" value="{getUrl(['module' => 'admin'])}" /> <input type="hidden" name="success_return_url" value="{getCurrentUrl()}" />
<button type="submit" class="x_close" title="{$lang->cmd_delete}">&times;</button> <button type="submit" class="x_close" title="{$lang->cmd_delete}">&times;</button>
</form> </form>
</li> </li>