summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Rothstein <drothstein@gmail.com>2012-07-29 22:27:34 -0400
committerDavid Rothstein <drothstein@gmail.com>2012-07-29 22:27:34 -0400
commit8bd1079972d6936b571c9aa3fa26f1bb960defe7 (patch)
treed732dac78016db49e414f90691cfa27fbe2c545d
parent41f11d40b2eec1872ff771be2dd20ab28db81698 (diff)
downloadbrdo-8bd1079972d6936b571c9aa3fa26f1bb960defe7.tar.gz
brdo-8bd1079972d6936b571c9aa3fa26f1bb960defe7.tar.bz2
Issue #1599618 by droplet, yurtboy, Albert Volkman: Fixed Remove duplicate array keys.
-rw-r--r--modules/book/book.module3
-rw-r--r--modules/file/file.field.inc3
-rw-r--r--modules/locale/locale.test1
-rw-r--r--modules/simpletest/tests/batch.test2
-rw-r--r--modules/simpletest/tests/form.test2
5 files changed, 3 insertions, 8 deletions
diff --git a/modules/book/book.module b/modules/book/book.module
index 20ce4fc86..1fb0c0b11 100644
--- a/modules/book/book.module
+++ b/modules/book/book.module
@@ -528,13 +528,12 @@ function _book_add_form_elements(&$form, &$form_state, $node) {
'#collapsed' => TRUE,
'#group' => 'additional_settings',
'#attributes' => array(
- 'class' => array('book-form'),
+ 'class' => array('book-outline-form'),
),
'#attached' => array(
'js' => array(drupal_get_path('module', 'book') . '/book.js'),
),
'#tree' => TRUE,
- '#attributes' => array('class' => array('book-outline-form')),
);
foreach (array('menu_name', 'mlid', 'nid', 'router_path', 'has_children', 'options', 'module', 'original_bid', 'parent_depth_limit') as $key) {
$form['book'][$key] = array(
diff --git a/modules/file/file.field.inc b/modules/file/file.field.inc
index 6a9f199c4..1189704fd 100644
--- a/modules/file/file.field.inc
+++ b/modules/file/file.field.inc
@@ -627,10 +627,9 @@ function file_field_widget_process($element, &$form_state, $form) {
// Add the description field if enabled.
if (!empty($instance['settings']['description_field']) && $item['fid']) {
$element['description'] = array(
- '#type' => 'textfield',
+ '#type' => variable_get('file_description_type', 'textfield'),
'#title' => t('Description'),
'#value' => isset($item['description']) ? $item['description'] : '',
- '#type' => variable_get('file_description_type', 'textfield'),
'#maxlength' => variable_get('file_description_length', 128),
'#description' => t('The description may be used as the label of the link to the file.'),
);
diff --git a/modules/locale/locale.test b/modules/locale/locale.test
index afad99f89..6f3135b08 100644
--- a/modules/locale/locale.test
+++ b/modules/locale/locale.test
@@ -1730,7 +1730,6 @@ class LocaleBrowserDetectionTest extends DrupalUnitTestCase {
'eh' => 'eh-oh-laa-laa',
// Different qvalues.
- 'en-US,en;q=0.5,fr;q=0.25' => 'en-US',
'fr,en;q=0.5' => 'fr-CA',
'fr,en;q=0.5,fr-CA;q=0.25' => 'fr',
diff --git a/modules/simpletest/tests/batch.test b/modules/simpletest/tests/batch.test
index f668e5228..e41bc92be 100644
--- a/modules/simpletest/tests/batch.test
+++ b/modules/simpletest/tests/batch.test
@@ -341,8 +341,6 @@ class BatchPercentagesUnitTestCase extends DrupalUnitTestCase {
'33' => array('total' => 3, 'current' => 1),
// 2/3 is closer to 67% than to 66%.
'67' => array('total' => 3, 'current' => 2),
- // A full 3/3 should equal 100%.
- '100' => array('total' => 3, 'current' => 3),
// 1/199 should round up to 1%.
'1' => array('total' => 199, 'current' => 1),
// 198/199 should round down to 99%.
diff --git a/modules/simpletest/tests/form.test b/modules/simpletest/tests/form.test
index d1bb171e1..985abe31b 100644
--- a/modules/simpletest/tests/form.test
+++ b/modules/simpletest/tests/form.test
@@ -52,7 +52,7 @@ class FormsTestCase extends DrupalWebTestCase {
$elements['radios']['element'] = array('#title' => $this->randomName(), '#type' => 'radios', '#options' => array('' => t('None'), $this->randomName(), $this->randomName(), $this->randomName()));
$elements['radios']['empty_values'] = $empty_arrays;
- $elements['checkbox']['element'] = array('#title' => $this->randomName(), '#type' => 'checkbox', '#required' => TRUE, '#title' => $this->randomName());
+ $elements['checkbox']['element'] = array('#title' => $this->randomName(), '#type' => 'checkbox', '#required' => TRUE);
$elements['checkbox']['empty_values'] = $empty_checkbox;
$elements['checkboxes']['element'] = array('#title' => $this->randomName(), '#type' => 'checkboxes', '#options' => array($this->randomName(), $this->randomName(), $this->randomName()));