aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--www/drupal4-taxonomy_access/Makefile2
-rw-r--r--www/drupal4-taxonomy_access/files/patch-taxonomy_access_admin.inc36
-rw-r--r--www/drupal5-taxonomy_access/Makefile2
-rw-r--r--www/drupal5-taxonomy_access/files/patch-taxonomy_access_admin.inc36
4 files changed, 74 insertions, 2 deletions
diff --git a/www/drupal4-taxonomy_access/Makefile b/www/drupal4-taxonomy_access/Makefile
index 08cea34c815c..1d5e2128eae1 100644
--- a/www/drupal4-taxonomy_access/Makefile
+++ b/www/drupal4-taxonomy_access/Makefile
@@ -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
diff --git a/www/drupal4-taxonomy_access/files/patch-taxonomy_access_admin.inc b/www/drupal4-taxonomy_access/files/patch-taxonomy_access_admin.inc
new file mode 100644
index 000000000000..d592fe4e2b5e
--- /dev/null
+++ b/www/drupal4-taxonomy_access/files/patch-taxonomy_access_admin.inc
@@ -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,
+ );
+ }
+ }
diff --git a/www/drupal5-taxonomy_access/Makefile b/www/drupal5-taxonomy_access/Makefile
index 08cea34c815c..1d5e2128eae1 100644
--- a/www/drupal5-taxonomy_access/Makefile
+++ b/www/drupal5-taxonomy_access/Makefile
@@ -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
diff --git a/www/drupal5-taxonomy_access/files/patch-taxonomy_access_admin.inc b/www/drupal5-taxonomy_access/files/patch-taxonomy_access_admin.inc
new file mode 100644
index 000000000000..d592fe4e2b5e
--- /dev/null
+++ b/www/drupal5-taxonomy_access/files/patch-taxonomy_access_admin.inc
@@ -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,
+ );
+ }
+ }