Formfeed-UK / nova-breadcrumbs

Augments Nova 4 Breadcrumbs with nesting and resource/static override methods
MIT License
19 stars 8 forks source link

Deleting models when breadcrumbs are implemented. #4

Closed philipbaginski closed 2 years ago

philipbaginski commented 2 years ago

It looks like there is some bug:

Deleting models when breadcrumbs are implemented.

I added breadcrumbs to one of the resource and every time I want to reach Detail view it goes to 404 and the model I would like to access is deleted.

It never ever happened before when breadcrumbs were off.

Any idea what is wrong?

ianrobertsFF commented 2 years ago

Can you confirm you're running at least 0.1.2?

Could be a potential side effect of not cloning the model instance for the reflection class which was fixed in 0.1.2.

philipbaginski commented 2 years ago

Update helps. Very unfriendly behavior of the package. Deleting records from database :-) Do you thing it will not happens in the future? :-)

If yes, close the bug :-)

ianrobertsFF commented 2 years ago

Indeed that's why it was updated.

As a new blank instance of the model is now being created for the purposes of reflection this cant happen again.