⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

setRelationNtoN - Last item can not be deleted



nzyan
  • profile picture
  • Member

Posted 14 July 2017 - 10:33 AM

Hi,

 

I found a strange bug, wondering if anyone else had this:

 

When using the „setRelationNtoN“ function I'm able to add and delete items.

 

But when trying to delete the last item, it's not deleted.

No error message.

 

I'm using Grocery Crud Enterprise 2.3.1

 

Any ideas, suggestions or work arounds?

 

Edit: Doesn't work in the last Grocery Crud documentation too:

 

https://www.grocerycrud.com/enterprise/api-and-function-list/setRelationNtoN

 

When trying to delete categories from the provided sample this doesn't work as soon as no items are left after the delete.

 

TIA

 

Andreas


nzyan
  • profile picture
  • Member

Posted 17 July 2017 - 09:51 AM

Anyone?