Bug Report: Custom Editor Template Field Rendering 15 times

Bug Report: Custom Editor Template Field Rendering 15 times

rw152rw152 Posts: 56Questions: 15Answers: 1

Hi,

I'd just like to report a strange bug I've found when using custom editor templates (https://editor.datatables.net/examples/styling/template.html).

All other field names are generating correctly (e.g. only one input per fieldname), but for some reason this one field name is generating 15 times or so.

It's a simple text input, with field name <editor-field name="AP.nextduehourinterval"/> with a default value of 0.0

Nothing special on the PHP side...

Field::inst( 'AP.nextduehourinterval' ),

Same goes for the JS side as far as I know. There are multiple editors using this field name, but same goes for the other field names in the form.

This question has an accepted answers - jump to answer

Answers

  • rw152rw152 Posts: 56Questions: 15Answers: 1
    Answer ✓

    Ok, I'm a dope. It was happening because I accidentally included AP.nextduehourinterval twice in the same custom template. sighs :smiley:

  • allanallan Posts: 63,489Questions: 1Answers: 10,470 Site admin

    No worries - thanks for the update!

    Allan

This discussion has been closed.