1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-02 06:03:50 +00:00

Let's do the real thing:

- Fix permissions on drupal taxonomy_access module. See
  http://drupal.org/node/115502 for details

PR:             ports/109457
Submitted by:   Nick Hilliard <nick at foobar.org> (maintainer)
Pointy hat to:	rafan
This commit is contained in:
Rong-En Fan 2007-03-25 09:57:53 +00:00
parent 4c5b2ab57d
commit 07dd81dc25
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=188264
4 changed files with 74 additions and 2 deletions

View File

@ -8,7 +8,7 @@
PORTNAME= taxonomy_access
DISTVERSION= 4.7.x-1.x-dev
PORTREVISION= 20070205
PORTEPOCH= 1
PORTEPOCH= 2
CATEGORIES= www security
MASTER_SITE_SUBDIR= pav/drupal

View File

@ -0,0 +1,36 @@
--- taxonomy_access_admin.inc.orig Sat Nov 4 22:50:38 2006
+++ taxonomy_access_admin.inc Fri Feb 23 10:57:47 2007
@@ -127,7 +127,7 @@
$form['taxonomy_access'][$vocab->vid]['default'][$grant] = array(
'#type' => 'radios',
'#options' => $radios,
- '#default_value' => $default[$vocab->vid][$grant],
+ '#default_value' => isset($default[$vocab->vid][$grant]) ? $default[$vocab->vid][$grant] : 0,
);
}
foreach (array('create', 'list') as $grant) {
@@ -137,7 +137,7 @@
);
$form['taxonomy_access'][$vocab->vid]['default'][$grant] = array(
'#type' => 'checkbox',
- '#default_value' => $default[$vocab->vid][$grant],
+ '#default_value' => isset($default[$vocab->vid][$grant]) ? $default[$vocab->vid][$grant] : 0,
);
}
@@ -150,13 +150,13 @@
$form['taxonomy_access'][$vocab->vid]['term'][$term->tid][$grant] = array(
'#type' => 'radios',
'#options' => $radios,
- '#default_value' => $perm[$term->tid][$grant],
+ '#default_value' => isset($perm[$term->tid][$grant]) ? $perm[$term->tid][$grant] : 0,
);
}
foreach (array('create', 'list') as $grant) {
$form['taxonomy_access'][$vocab->vid]['term'][$term->tid][$grant] = array (
'#type' => 'checkbox',
- '#default_value' => $perm[$term->tid][$grant],
+ '#default_value' => isset($perm[$term->tid][$grant]) ? $perm[$term->tid][$grant] : 0,
);
}
}

View File

@ -8,7 +8,7 @@
PORTNAME= taxonomy_access
DISTVERSION= 4.7.x-1.x-dev
PORTREVISION= 20070205
PORTEPOCH= 1
PORTEPOCH= 2
CATEGORIES= www security
MASTER_SITE_SUBDIR= pav/drupal

View File

@ -0,0 +1,36 @@
--- taxonomy_access_admin.inc.orig Sat Nov 4 22:50:38 2006
+++ taxonomy_access_admin.inc Fri Feb 23 10:57:47 2007
@@ -127,7 +127,7 @@
$form['taxonomy_access'][$vocab->vid]['default'][$grant] = array(
'#type' => 'radios',
'#options' => $radios,
- '#default_value' => $default[$vocab->vid][$grant],
+ '#default_value' => isset($default[$vocab->vid][$grant]) ? $default[$vocab->vid][$grant] : 0,
);
}
foreach (array('create', 'list') as $grant) {
@@ -137,7 +137,7 @@
);
$form['taxonomy_access'][$vocab->vid]['default'][$grant] = array(
'#type' => 'checkbox',
- '#default_value' => $default[$vocab->vid][$grant],
+ '#default_value' => isset($default[$vocab->vid][$grant]) ? $default[$vocab->vid][$grant] : 0,
);
}
@@ -150,13 +150,13 @@
$form['taxonomy_access'][$vocab->vid]['term'][$term->tid][$grant] = array(
'#type' => 'radios',
'#options' => $radios,
- '#default_value' => $perm[$term->tid][$grant],
+ '#default_value' => isset($perm[$term->tid][$grant]) ? $perm[$term->tid][$grant] : 0,
);
}
foreach (array('create', 'list') as $grant) {
$form['taxonomy_access'][$vocab->vid]['term'][$term->tid][$grant] = array (
'#type' => 'checkbox',
- '#default_value' => $perm[$term->tid][$grant],
+ '#default_value' => isset($perm[$term->tid][$grant]) ? $perm[$term->tid][$grant] : 0,
);
}
}