diff options
author | Rong-En Fan <rafan@FreeBSD.org> | 2007-03-25 09:57:53 +0000 |
---|---|---|
committer | Rong-En Fan <rafan@FreeBSD.org> | 2007-03-25 09:57:53 +0000 |
commit | 07dd81dc2520e63e40332a7efe5d7be7f5dda3d8 (patch) | |
tree | a2fcc55755961285c791b0d0df71ce7ff5c6c942 /www/drupal5-taxonomy_access | |
parent | 4c5b2ab57d62c1d0ce9815567ea53514bee110d4 (diff) | |
download | ports-07dd81dc2520e63e40332a7efe5d7be7f5dda3d8.tar.gz ports-07dd81dc2520e63e40332a7efe5d7be7f5dda3d8.zip |
Notes
Diffstat (limited to 'www/drupal5-taxonomy_access')
-rw-r--r-- | www/drupal5-taxonomy_access/Makefile | 2 | ||||
-rw-r--r-- | www/drupal5-taxonomy_access/files/patch-taxonomy_access_admin.inc | 36 |
2 files changed, 37 insertions, 1 deletions
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, + ); + } + } |