Skip to content

Commit

Permalink
Fix to common code of block edit hidden attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
s-nakajima committed May 21, 2015
1 parent fb9e1c5 commit a5cda63
Showing 1 changed file with 1 addition and 23 deletions.
24 changes: 1 addition & 23 deletions View/Elements/Blocks/edit_form.ctp
Original file line number Diff line number Diff line change
Expand Up @@ -14,29 +14,7 @@
'value' => isset($bbsSetting['id']) ? (int)$bbsSetting['id'] : null,
)); ?>

<?php echo $this->Form->hidden('Frame.id', array(
'value' => $frameId,
)); ?>

<?php echo $this->Form->hidden('Block.id', array(
'value' => $block['id'],
)); ?>

<?php echo $this->Form->hidden('Block.key', array(
'value' => $block['key'],
)); ?>

<?php echo $this->Form->hidden('Block.language_id', array(
'value' => $languageId,
)); ?>

<?php echo $this->Form->hidden('Block.room_id', array(
'value' => $roomId,
)); ?>

<?php echo $this->Form->hidden('Block.plugin_key', array(
'value' => 'bbses',
)); ?>
<?php echo $this->element('Blocks.form_hidden'); ?>

<?php echo $this->Form->hidden('Bbs.id', array(
'value' => isset($bbs['id']) ? (int)$bbs['id'] : null,
Expand Down

0 comments on commit a5cda63

Please sign in to comment.