Advanced Module Manager

Advanced module manager does not trigger onExtensionBeforeSave Event on module edit form save (any context)

2 years 4 months ago #68247

George Papadakis's Avatar George Papadakis

Hello

as the topic title says,

The event:
onExtensionBeforeSave

is not triggered when a module is saved (e.g. i use it to save extra form data)

Joomla default module manager triggers the event using context:
'com_modules.module'

I am not sure if you want to use the above context for better compatiblity.

But even if this context is used:
'com_advancedmodules.module'

3rd party developers can make use of such a context too

2 years 4 months ago #68248

George Papadakis's Avatar George Papadakis

The event should be triggered by the DB model save method by using a call like

// Trigger the before save event.
$result = $dispatcher->trigger($this->event_before_save, array($context, &$table, $isNew));

just before calling $table->store

2 years 4 months ago #68259

Peter van Westen's Avatar Peter van Westen Admin

Please try the latest development version from:
www.regularlabs.com/development-releases

2 years 4 months ago #68294

Jean Hins's Avatar Jean Hins

Hi Peter,

the new version seems to work fine in regards to the issue.

2 years 4 months ago #68296

Peter van Westen's Avatar Peter van Westen Admin

Ok, great 🙂
The fix will be included in the next release.

2 years 4 months ago #68304

George Papadakis's Avatar George Papadakis

hello,
yes, in regards to the specific issue, it works properly now

2 years 4 months ago #68305

Pisan Chueachatchai's Avatar Pisan Chueachatchai

it works properly now