gerhard / glz_custom_fields_public

glz_custom_fields contributors can raise bugs here and vote for features
16 stars 2 forks source link

Using glz_custom_fields with MLP on TXP 4.4.1 creates a duplicate Body field #28

Open johnstephens opened 13 years ago

johnstephens commented 13 years ago

This issue is very similar to issue 23, which was solved by the most recent upgrade.

Now, instead of seeing a duplicate Excerpt field, the Body field is duplicated. The duplicate field appears below all my glz Textarea custom fields and above the Excerpt field.

Here's how it looks in the source order:

p.body <!-- This field includes a hak_tinymce editor -->

<!-- Textarea-type custom fields -->

p.body[dir=ltr]  <!-- This duplicate Body field includes a dir attribute, but no tinymce editor -->

p.excerpt[dir=ltr]

I can't use the same CSS hack I used before because hiding the first Body field also hides the tinymce Editor that my clients use to markup the content. If I hide the second Body field instead, that field is submitted regardless of edits to the visible field. This is a big problem when updating an article.

johnstephens commented 13 years ago

Workaround: Teemu posted this script which removes the duplicate Body field:

$("p.body:eq(1)").remove();