Skip to content

Unexpected field 'apply' in POST data #9

@pravynandas

Description

@pravynandas

Following line custom field 'apply' causing security issue:

<?php echo $this->Form->submit(__('Apply'), array('name' => 'data[apply]', 'class' => 'btn btn-default', 'div' => false, 'style' => 'margin-left:10px;')); ?>

Needed to unlock the field right below the create() line:

<?php echo $this->Form->create('MyModel', array('role' => 'form')); ?>
<?php echo $this->Form->unlockField('apply'); ?>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions