From 344899ab77234b95c56afee509505a59ad1c8658 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Mon, 5 Mar 2012 10:55:44 +0100 Subject: [PATCH] Revert "ENHANCEMENT Support numeric array values in CheckboxSetField (?Field[]=val1&Field[]=val2 instead of ?Field[val1]=1&Field[val2]=1)" - data handling with numeric/associative arrays too clumsy, fixed up ListboxField instead This reverts commit 8fa266462f2ef3aac5065045649f75f776498728. --- forms/CheckboxSetField.php | 15 ++++-------- tests/forms/CheckboxSetFieldTest.php | 36 +--------------------------- tests/forms/CheckboxSetFieldTest.yml | 13 ++++++++-- 3 files changed, 17 insertions(+), 47 deletions(-) diff --git a/forms/CheckboxSetField.php b/forms/CheckboxSetField.php index 2c0a44bed..07e6d100d 100644 --- a/forms/CheckboxSetField.php +++ b/forms/CheckboxSetField.php @@ -184,16 +184,10 @@ class CheckboxSetField extends OptionsetField { $fieldname = $this->name ; if($fieldname && $record && ($record->has_many($fieldname) || $record->many_many($fieldname))) { $idList = array(); - // Works for both style - array('val1' => true, 'val2' => true). - // The