Jump to content

QuerCoder

Members
  • Posts

    3
  • Joined

  • Last visited

Everything posted by QuerCoder

  1. We've managed to solve the problem by adding: $p->trackChange($field_name); right before: $p->deleteAll($field_name); This solution works for us, but we're still curious — why did this issue occur in the first place? Why doesn't deleteAll work without manually triggering trackChange? Any insights would be appreciated! Thanks again for the help!
  2. We've certainly tried it, and it doesn't work for us.
  3. Hi everyone, I'm writing on behalf of the original poster, and we're continuing to investigate the issue together. Thank you all for your suggestions and support so far! We've done some additional debugging and noticed something interesting. On the page where deleteAll works correctly, calling isChanged($field_name) returns true, as expected. However, on all other pages where deleteAll fails, isChanged($field_name) returns false. I've attached two screenshots showing the debug results: one from the page that works and one from a page that doesn't. Looking at the remove function in \wire\core\WireArray.php, it seems like the issue might be related to trackChange or trackRemove not being triggered for some reason. Could this be the root of the problem? Any insights or ideas on what could be causing this would be greatly appreciated. Thanks again for your help!
×
×
  • Create New...