Two conflicting messages after a DB operation with negative result

lorenzo51

New Member
When executing an operation that violates either the referential integrity constraints (foreign key) or the unicity of an index I get two messages.
The first signals the error from the DB and that the operation was unsuccessful.
The second states that the operation was executed.
It is correct that the operation was not executed, however the second message creates confusion to the user.
 
I've had a go at adding some rudimentary throw/catch error handling for the db insert/update code - so now if a db error occurs on storing the row the user is redirected back to the form and the db error message is shown.
 
Joomla installation is based on MyISAM tables, and the tables I've created for the lists are InnooDB.
However, after Rob's intervention answering the DB insert/update error issue, now I receive only the error message from the DB, I no longer receive the second notification message stating that the record had been inserted/updated, and that created confusion to end users.
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top