Closed LiaraAlis closed 1 month ago
When using Grav v1.7.43 with Admin v1.10.43, the onAdminSave admin has no effect. Address is not geocoded even it's enabled in plugin configuration.
onAdminSave
This is caused by 2 problems:
Object is an instance of PageObject instead of Page: https://github.com/pikim/grav-plugin-events/blob/12b599c8f162c2a739630f8a6366fb36b4efc3d7/events.php#L315 https://github.com/pikim/grav-plugin-events/blob/12b599c8f162c2a739630f8a6366fb36b4efc3d7/events.php#L363
PageObject
Page
Indirect modification of overloaded property is not possible: https://github.com/pikim/grav-plugin-events/blob/12b599c8f162c2a739630f8a6366fb36b4efc3d7/events.php#L340
This commit fixed both.
When using Grav v1.7.43 with Admin v1.10.43, the
onAdminSave
admin has no effect. Address is not geocoded even it's enabled in plugin configuration.This is caused by 2 problems:
Object is an instance of
PageObject
instead ofPage
: https://github.com/pikim/grav-plugin-events/blob/12b599c8f162c2a739630f8a6366fb36b4efc3d7/events.php#L315 https://github.com/pikim/grav-plugin-events/blob/12b599c8f162c2a739630f8a6366fb36b4efc3d7/events.php#L363Indirect modification of overloaded property is not possible: https://github.com/pikim/grav-plugin-events/blob/12b599c8f162c2a739630f8a6366fb36b4efc3d7/events.php#L340
This commit fixed both.