User tests: Successful: Unsuccessful:
This is a followup PR on #7583. That PR introduced a new property $associationsContext
for model classes which holds the context for the association table. We now use this property to safely delete associations in JModelAdmin if an item is deleted.
A similar thing can be done when saving the associations
Currently, we have the same code duplicated for each extension where we support associations. With the only difference being the context of the item we're saving.
This is just tedious for extension developers.
Using that new $associationsContext
property we can now do the saving in JModelAdmin instead of each child model. Which means the extension developers just have to define that property and the associations will be saved automatically.
The following extensions need to be tested. Make sure you can associate items from different languages together as before. There should be no change in function at all.
The following extensions just changed the context from being hardcoded to use the class property now. The code to save the associations is still in the child class since the parent method isn't used there.
Status | New | ⇒ | Pending |
Labels |
Added:
?
|
Category | ⇒ | Libraries |
Easy | No | ⇒ | Yes |
worked here too.
Status | Pending | ⇒ | Ready to Commit |
2 test OK. RTC
Milestone |
Added: |
Status | Ready to Commit | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2015-08-05 16:06:54 |
Closed_By | ⇒ | rdeutz |
Labels |
Removed:
?
|
Just for the records otherwise "Opa" get's annoyed: Works like a charm JM ..... ;-) RTC indeed
Test OK here.
This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/7617.