Release of v3.2.2-beta3

Fix init feature to only add missing powers. Fix controller postSaveHook function, for correct model class in Joomla 4 and 5.
This commit is contained in:
2024-07-18 17:11:47 +02:00
parent cab8ffa122
commit b4792c097c
8 changed files with 20 additions and 18 deletions

View File

@ -94,7 +94,7 @@ abstract class Get implements GetInterface
{
foreach($items as $guid)
{
if ($this->item->table($this->getTable())->value($guid) !== null &&
if ($this->item->table($this->getTable())->value($guid) === null &&
($item = $this->grep->get($guid, ['remote'])) !== null)
{
$this->item->set($item);

View File

@ -45,8 +45,8 @@ final class Load extends Model implements ModelInterface
$table = $this->getTable();
}
// check if this is a valid table
if (($store = $this->table->get($table, $field, 'store')) !== null)
// check if this is a valid table (don't touch null)
if ($value !== null && ($store = $this->table->get($table, $field, 'store')) !== null)
{
// open the value based on the store method
switch($store)