Skip to content

Commit

Permalink
idセット見直し #79
Browse files Browse the repository at this point in the history
  • Loading branch information
akagane99 committed May 6, 2016
1 parent 5e3496e commit 366ff53
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions View/Elements/edit_form.ctp
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,11 @@
<?php endif; ?>

<?php foreach ($editForms as $index => $editForm) : ?>
<?php $mailSettingFixedPhrase = hash::get($this->request->data, 'MailSettingFixedPhrase.' . $editForm['mailTypeKey']); ?>
<?php echo $this->NetCommonsForm->hidden('MailSettingFixedPhrase.' . $index . '.id', array('value' => $mailSettingFixedPhrase['id'])); ?>
<?php
$mailSettingFixedPhrase = hash::get($this->request->data, 'MailSettingFixedPhrase.' . $editForm['mailTypeKey']);
$id = hash::get($this->request->data, 'MailSettingFixedPhrase.' . $editForm['mailTypeKey'] . '.id');
?>
<?php echo $this->NetCommonsForm->hidden('MailSettingFixedPhrase.' . $index . '.id', array('value' => $id)); ?>
<?php echo $this->NetCommonsForm->hidden('MailSettingFixedPhrase.' . $index . '.language_id', array('value' => Current::read('Language.id'))); ?>
<?php echo $this->NetCommonsForm->hidden('MailSettingFixedPhrase.' . $index . '.plugin_key', array('value' => Current::read('Plugin.key'))); ?>
<?php echo $this->NetCommonsForm->hidden('MailSettingFixedPhrase.' . $index . '.block_key', array('value' => Current::read('Block.key'))); ?>
Expand Down

0 comments on commit 366ff53

Please sign in to comment.