3
0
Fork 0
mirror of https://github.com/farmOS/farmOS.git synced 2024-02-23 11:37:38 +01:00

Allow multiple quantities to be entered on each log. Hide initial form and require user to add first item.

This commit is contained in:
Michael Stenta 2017-09-28 14:40:50 -04:00
parent e92d6f4fec
commit 6a1f70fd73

View file

@ -13,7 +13,7 @@ function farm_quantity_field_default_field_bases() {
// Exported field_base: 'field_farm_quantity'.
$field_bases['field_farm_quantity'] = array(
'active' => 1,
'cardinality' => 1,
'cardinality' => -1,
'deleted' => 0,
'entity_types' => array(),
'field_name' => 'field_farm_quantity',
@ -29,7 +29,7 @@ function farm_quantity_field_default_field_bases() {
'module' => 'field_collection',
'settings' => array(
'hide_blank_items' => 1,
'hide_initial_item' => 0,
'hide_initial_item' => 1,
'path' => '',
),
'translatable' => 0,