Forum
PHP Notice when showing a select box in collections Item list column IDs
Here's my template:
<perch:categories id="area" set="areas-geographical" label="Area" required="true" />
<perch:content id="parish_name" type="text" label="Parish Name" title="true" />
<perch:categories id="borough" set="boroughs" label="Borough" required="true" />
<perch:content id="church_size" type="text" label="Church Size" />
<perch:content id="description" type="text" label="Description" title="true" />
<perch:categories id="activity_type" set="activity-type" label="Activity Type" />
<perch:categories id="area_of_concern" set="area-of-concern" label="Area of concern" required="true" />
<perch:content id="beneficiaries" type="text" label="Beneficiaries" />
<perch:content id="volunteers" type="text" label="Volunteers" />
<perch:content id="notes" type="text" label="Notes" />
<perch:content id="status" type="select" label="Status" options="Active,Archived" default="Active" />
If I add the "status" field to my list of field IDs that is listed in the list view, I get the error message
Notice: Undefined offset: 1 in /PATH TO/local/perch/core/lib/PerchFieldTypes.class.php on line 701
Notice: Undefined offset: 1 in /PATH TO/local/perch/core/lib/PerchFieldTypes.class.php on line 701
Is this because it's a select field?
Can you post your diagnostics?
Sure
You can work around it with:
Thanks Drew.