Hi,
Try this:
- just 3 records in repeater
- delete middle record
- add some record
- save
Repeater saves only first and last record.
Doesnt work in all my sites.
Hi,
Try this:
Repeater saves only first and last record.
Doesnt work in all my sites.
What version of October CMS are you using?
Ive used the latest version 3.7.11
Do you mean it only happens in some of your sites?
No in all sites is a problem. Looks like JS is getting wrong index - same as last record on newly created record. This happens after deleting record before creating new one.
I also noticed strange behavior, if you add a new item and then change its position in the list, the data is not saved correctly. Worked in conjunction with Repeater + ExpandoModel
@daft I can confirm this - we have the same problem using Group Repeater.
It can be reproduced like this:
Newly added (last) item will have the same ID as the previous last item (now second from the end).
When saved, only the newly added item is saved and the other is lost.
This bug is not present in OCv1
Hey @jan-vince
I can’t reproduce this in the demo theme (About Page management area). Does it happen here?
Hi @daft,
Group Repeater in Demo theme works (even when changed to span: large
so the Add button
is above items).
I have tested Group Repeater with Static Pages and with my plugin - both have the same problem - when any of inner items is deleted the newly added item has a wrong index.
Only difference I have noticed so far is that with Demo
theme the repeater <li>
items have attribute draggable='false'
. When used with Static Pages or plugin they don’t have this.