Skip to content

Commit 83877fc

Browse files
committed
fix: Solve issues with edit matrix permissions screen
1 parent f843f5c commit 83877fc

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

admin/perms/addchild.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
$ui->setVars($vars);
3636
$ui->setupAddForm($permission);
3737

38-
if ($ui->validateAddForm($info)) {
38+
if ($info = $ui->validateAddForm($info)) {
3939
try {
4040
if ($info['perm_id'] == Horde_Perms::ROOT) {
4141
$child = $corePerms->newPermission($info['child']);

admin/perms/edit.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
$corePerms = $injector->getInstance('Horde_Core_Perms');
2424
$perm_id = $vars->get('perm_id');
2525
$category = $vars->get('category');
26-
2726
/* See if we need to (and are supposed to) autocreate the permission. */
2827
$redirect = false;
2928
if ($category !== null) {
@@ -123,7 +122,7 @@
123122
$ui = new Horde_Core_Perms_Ui($perms, $corePerms);
124123
$ui->setVars($vars);
125124
$ui->setupEditForm($permission);
126-
125+
$info = [];
127126
if ($ui->validateEditForm($info)) {
128127
/* Update and save the permissions. */
129128
$permission->updatePermissions($info);

0 commit comments

Comments
 (0)