Author:
nickdunn
Version:
1.7
Released:
5 February 2011
Category:
Other

New#2: option elements getting dupped

I just had a strange bug related to the Section Schemas extension:

In the case that multiple non-dynamic select boxes were positioned next to each other on the Publish Panel, the option elements of one or more of those select box fields were duplicated.

Specifically in my case, the 2nd of 3 select boxes had its options duplicated x4. The dups appeared next to the original option eg:

 <option handle='apples' />
<option handle='oranges' />

<option handle='apples' />
<option handle='apples' />
<option handle='apples' />
<option handle='apples' />
<option handle='oranges' />
<option handle='oranges' />
<option handle='oranges' />
<option handle='oranges' />

Reordering the boxes on the publish panel resulted in the 2nd position getting dupped regardless of which field it was. Sometimes the previously dupped field would be corrected, sometimes not.

I also have a Reflection extension field on that section; not sure if that’s related.

My workaround was to reorder the select boxes such that they were not ordered next to each other (I put another field after the 1st ans 2nd of the 3 select boxes.

Please login to comment.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details