thohms/dmCronPlugin — Issue #1: Two errors while trying dmCronPlugin
Author: kisskrool
Created: 2011-10-23 15:28:52+00:00
State: open

Hi,

I am a long time user of your dmCronPlugin. I've noticed two errors I didn't take time to correct before.

When I wanted to create a new Cron in admin, I've stumbled upon a first notice error that is related to the (multi-level) inclusion of the partial '_form_fieldset' in the '_form' partial. It misses the parameter $helper which you apparently forgot to pass.

at line 31 of '_form', it should be:
$helper,'dm_cron' => $dm_cron, 'form' => $form, 'fields' => $fields, 'fieldset' => $fieldset)) ?>

Secondly, the field 'last_run' of the form which is made hidden isn't present in the form. So yes you made it hidden, but it then cannot be saved and throws the error: "Unexpected extra form field named "last_run"

One solution I found is to add the field 'last_run' in one of the fieldset of your form in 'generator.yml', like that for example:

form:
display:
NONE: [action_name, is_active, action_type, last_run]

Regards