Error from saveOrderAjax while adding drag-n-drop ordering in component Topic is solved

For Joomla! 3.x Coding related discussions, please use: http://groups.google.com/group/joomla-dev-general

Moderator: ooffick

Forum rules
Please use the mailing list here: http://groups.google.com/group/joomla-dev-general rather than this forum.
Post Reply
faither
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Tue Apr 23, 2019 1:17 am

Error from saveOrderAjax while adding drag-n-drop ordering in component

Post by faither » Tue Apr 23, 2019 4:40 am

I develop my component according to https://docs.joomla.org/J3.x:Developing ... g_Ordering.
After tests my joomla shows mistake

Code: Select all

Duplicate entry '4' for key 'ordering' SQL=UPDATE `#__smwork_sostavsm` SET 
Can anyone help?
Last edited by toivo on Tue Apr 23, 2019 6:19 am, edited 1 time in total.
Reason: mod note: moved to 3.x Coding

faither
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Tue Apr 23, 2019 1:17 am

Re: Error from saveOrderAjax while adding drag-n-drop ordering in component

Post by faither » Tue Apr 23, 2019 9:04 am

Corrected this error.
In the mysql settings, the ordering field was unique. Removing an index on this field removed the error.


Post Reply

Return to “Joomla! 3.x Coding”