Skip to content

Commit

Permalink
Fixed issue #07271: Template Permission Page Won't Save Name Containi…
Browse files Browse the repository at this point in the history
…ng Dot

Dev: name with dot is valid, but php replace it by _, then array_split
  • Loading branch information
Shnoulle committed Feb 7, 2013
1 parent 42e7dd1 commit 8f2440e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion application/controllers/admin/useraction.php
Expand Up @@ -545,9 +545,10 @@ function usertemplates()
if (Yii::app()->session['USER_RIGHT_SUPERADMIN'] == 1 || Yii::app()->session['USER_RIGHT_MANAGE_TEMPLATE'] == 1) {
$templaterights = array();
$tresult = Template::model()->findAll();
$postvalue= array_flip($_POST);
foreach ($tresult as $trow)
{
if (isset($_POST[$trow["folder"] . "_use"]))
if (isset($postvalue[$trow["folder"] . "_use"]))
$templaterights[$trow["folder"]] = 1;
else
$templaterights[$trow["folder"]] = 0;
Expand Down

0 comments on commit 8f2440e

Please sign in to comment.