multiple property of field action does not work in XML pattern

abarton - May 13, 2009 - 15:26
Project:Patterns
Version:6.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

The specified value for the 'multiple' property of a 'field' action is not honored. This is a persistent bug regardless of node type or field type. Assuming the referenced type exists this will not set the field to allow unlimited values as it should:

    <field>
      <type>profile</type>
      <name>favorite_urls</name>
      <label>Favorite URLs</label>
      <option>link</option>
      <widget>link</widget>
      <weight>42</weight>
      <multiple>1</multiple>      <!-- NOT WORKING //-->
      <title>optional</title>
    </field>   

#1

vaish - May 15, 2009 - 09:57

Recently added experimental code introduced some bugs which are causing this issue. We will try to fix it as soon as possible. Thanks for reporting the bug.

#2

linclark - July 17, 2009 - 13:29

This is also not working in YAML patterns

#3

sarvab - July 21, 2009 - 09:12
Status:active» needs review

This issue should be fixed now for both XML and YAML. It was caused by confusion of the #option labels and values for the mutiple select value. The label "1", which is actually key 0, was being used instead of the key "1", which is label "unlimited".

The code now looks for keys first over labels.

In this case, using unlimited would also have worked.

#4

vaish - August 7, 2009 - 16:14
Status:needs review» fixed

#5

System Message - August 21, 2009 - 16:20
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.