Can't delete custom field

  • Posts: 615
  • Thank you received: 23
  • Hikaserial Subscription Hikashop Multisite
1 week 6 days ago #368736

-- HikaShop version -- : 6.1.0
-- Joomla version -- : 5.3.3.
-- PHP version -- : 8.3

Hi Support,

When we create a custom field and we don't use it at all,
we delete it and then we get this error.



But it looks like the custom field is gone.
So it is deleted, but the error says something different.

Is this correct?

Hope to hear from you.

Kind regards,
Lumiga


Kind regards,
Lumiga
Attachments:
Last edit: 1 week 5 days ago by Lumiga.

Please Log in or Create an account to join the conversation.

  • Posts: 84498
  • Thank you received: 13740
  • MODERATOR
1 week 4 days ago #368741

Hi,

Thanks for the feedback. This is probably because the code to know the number of affected rows of the delete MySQL query is not right after the MySQL query being run, but after the call to the onAfterFieldDelete event. And thus, if you have a plugin, like the action log plugin which does stuff in the database in that event, then it's possible that the wrong number of affected rows will be found, and if it's 0, then the error message will popup even if it has nothing to do with the real deletion of the custom field.
So I suppose that everything went fine in your case and you can just dismiss the error.
On our end, we'll change the order of things there so that it should not happen anymore with the next version of HikaShop.

The following user(s) said Thank You: Lumiga

Please Log in or Create an account to join the conversation.

Time to create page: 0.061 seconds
Powered by Kunena Forum