? Success

User tests: Successful: Unsuccessful:

avatar okonomiyaki3000 okonomiyaki3000 - open - 11 Jul 2014
avatar okonomiyaki3000 okonomiyaki3000 - change - 11 Jul 2014
Title
Multi option validation
[#32422] Multi option validation
avatar okonomiyaki3000
okonomiyaki3000 - comment - 25 Jul 2014

To test this, create a checkboxes field and give an attribute like validate="options". This will fail because the value will be an array and the rule is expecting a single value. After the patch, it will work with multiple values such as checkboxes or single values such as selects and radio buttons.

avatar brianteeman brianteeman - change - 21 Aug 2014
Status New Pending
avatar nicksavov nicksavov - change - 21 Aug 2014
Labels Removed: ?
avatar jissues-bot jissues-bot - change - 17 Oct 2014
Title
[#32422] Multi option validation
Multi option validation
avatar brianteeman brianteeman - change - 17 Oct 2014
Category Libraries
avatar brianteeman brianteeman - change - 17 Oct 2014
Title
[#32422] Multi option validation
Multi option validation
avatar okonomiyaki3000 okonomiyaki3000 - change - 20 Nov 2014
Title
Multi option validation
[#32422] Multi option validation
avatar okonomiyaki3000 okonomiyaki3000 - change - 20 Nov 2014
Title
Multi option validation
[#32422] Multi option validation
avatar okonomiyaki3000
okonomiyaki3000 - comment - 20 Nov 2014

:+1:

avatar fvdn
fvdn - comment - 28 Feb 2015

@test
To test this i add in the file: mod_articles_catagories.xml (in the map modules) the next "test"field.
name="show_description1"
validate="options"
multiple="true"
type="checkboxes"
class=""
default="0"
label="MOD_ARTICLES_CATEGORIES_FIELD_SHOW_DESCRIPTION_LABEL"
description="MOD_ARTICLES_CATEGORIES_FIELD_SHOW_DESCRIPTION_DESC">
TEST
JYES
JNO

            </field>

I checked all three options.
Without patch i get a error.
With patch its works oke!


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/3877.
avatar fvdn fvdn - test_item - 28 Feb 2015 - Tested successfully
avatar fvdn
fvdn - comment - 28 Feb 2015
<field

name="show_description1"

validate="options"

multiple="true"

type="checkboxes"

class=""

default="0"

label="MOD_ARTICLES_CATEGORIES_FIELD_SHOW_DESCRIPTION_LABEL"

description="MOD_ARTICLES_CATEGORIES_FIELD_SHOW_DESCRIPTION_DESC">

TEST

JYES

JNO


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/3877.

avatar snarf007
snarf007 - comment - 10 Apr 2015

Added the following lines:
name="show_description1"
validate="options"
multiple="true"
type="checkboxes"
class=""
default="0"
label="MOD_ARTICLES_CATEGORIES_FIELD_SHOW_DESCRIPTION_LABEL"
description="MOD_ARTICLES_CATEGORIES_FIELD_SHOW_DESCRIPTION_DESC">
JYES
JNO

Test succes

Able to save multiple selected checkbox items


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/3877.

avatar snarf007 snarf007 - test_item - 10 Apr 2015 - Tested successfully
avatar zero-24 zero-24 - change - 10 Apr 2015
Status Pending Ready to Commit
avatar zero-24
zero-24 - comment - 10 Apr 2015

RTC'ing. Thanks :smile:


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/3877.

avatar zero-24 zero-24 - change - 10 Apr 2015
Labels Added: ?
avatar roland-d roland-d - change - 14 Apr 2015
Status Ready to Commit Closed
Closed_Date 0000-00-00 00:00:00 2015-04-14 20:59:44
avatar roland-d roland-d - close - 14 Apr 2015
avatar roland-d roland-d - close - 14 Apr 2015
avatar zero-24 zero-24 - change - 14 Apr 2015
Milestone Added:
avatar okonomiyaki3000 okonomiyaki3000 - head_ref_deleted - 15 Apr 2015

Add a Comment

Login with GitHub to post a comment