User tests: Successful: Unsuccessful:
No AI used.
This is an concept PR, it tries to understand or explain a way to get rid of Application when using save method in the model. Additionally it extends the save event to provide the type of save and in case of a copy providing the old/source primary key.
We remove the call to Factory::getApplication() in the ContactModel with a call it's own state object which will already has the task set in the controller.
In addition we add the old primary key in the Contact Controller which removes the dependency to the super global input object in the model.
As bonus point we have the old Primary key and can provide this information to the save plugin trigger, this allows 3rd party plugins to know the source entry primary key.
For example if you have attached information to an contact based on on the contact.id you are now able to copy this information to the new contact too.
At this point it's a starting point for a discussion.
TBA
TBA
TBA
Please select:
Documentation link for guide.joomla.org:
No documentation changes for guide.joomla.org needed
Pull Request link for manual.joomla.org: TBA
No documentation changes for manual.joomla.org needed
| Status | New | ⇒ | Pending |
| Category | ⇒ | Administration com_contact Libraries |