Index: branches/5.3.x/units/poll_comments/poll_comment_eh.php =================================================================== diff -u -N -r15670 -r15694 --- branches/5.3.x/units/poll_comments/poll_comment_eh.php (.../poll_comment_eh.php) (revision 15670) +++ branches/5.3.x/units/poll_comments/poll_comment_eh.php (.../poll_comment_eh.php) (revision 15694) @@ -1,6 +1,6 @@ Application->RecallVar('user_id') == USER_GUEST ) { // make Guest Name and Email required for guests - $fields = $this->Application->getUnitOption($event->Prefix, 'Fields'); + $config = $event->getUnitConfig(); + + $fields = $config->getFields(); $fields['GuestName']['required'] = 1; $fields['GuestEmail']['required'] = 1; - $this->Application->setUnitOption($event->Prefix, 'Fields', $fields); + $config->setFields($fields); } }