Skip to content

Commit

Permalink
[modxcms#2485] Fixed issue where placeholder was in duplicated Access…
Browse files Browse the repository at this point in the history
… Policy
  • Loading branch information
Shaun McCormick committed Oct 14, 2010
1 parent f776e55 commit 13a1abf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions core/docs/changelog.txt
Expand Up @@ -4,6 +4,7 @@ development release, and is only shown to give an idea of what's currently in th

MODx Revolution 2.0.4-pl
====================================
- [#2485] Fixed issue where placeholder was in duplicated Access Policy
- [#2492] Fixed reference in menu to bugs.modx.com
- [#2486] Removed hardcoded language reference in lexicon load in access permissions getList processor
- [#126] Ensured clearing of cache when deleting a Template Variable
Expand Down
Expand Up @@ -19,7 +19,9 @@
/* duplicate policy */
$newPolicy = $modx->newObject('modAccessPolicy');
$newPolicy->fromArray($oldPolicy->toArray('',true), '', false, true);
$newPolicy->set('name',$modx->lexicon('duplicate_of').$newPolicy->get('name'));
$newPolicy->set('name',$modx->lexicon('duplicate_of',array(
'name' => $newPolicy->get('name'),
)));

/* save new policy */
if ($newPolicy->save() === false) {
Expand Down

0 comments on commit 13a1abf

Please sign in to comment.