aDaneInSpain / component-creator-issues

A code-free repository for handling issues and feature requests for Component Creator for Joomla
https://www.component-creator.com
11 stars 0 forks source link

Handling of "Unique" fields in Duplicate #544

Closed MrTobyDog closed 2 years ago

MrTobyDog commented 3 years ago

Steps to reproduce the issue

In com_j4_blphotos, table badwords. In the Admin view try to Add an entry that duplicates an existing one - gets a sensible error message Now try to duplicate an item

Expected result

Should get the same message

Actual result

Gets an Exception raised and a stack trace.

Name of component and email used to register (if relevant)

com_j4_blphotos webmaster@birdlifephotography.org.au

System information (as much as possible)

Additional comments

Both seem to trigger an exception in check() in administrator\components\com_j4_blphotos\src\Table\BadwordTable.php. But the New function clearly handles this whereas Duplicate does not

madanedeepali commented 2 years ago

We have identified the problem and fixed it. please regenerate and install again for the fix.