Skip to content

Commit

Permalink
fix: ファイル追加時にバリデーションエラーが発生するとレイアウト崩れを起こしてたのを修正
Browse files Browse the repository at this point in the history
  • Loading branch information
RyujiAMANO committed Jun 25, 2019
1 parent d3ddd85 commit 173b836
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Controller/CabinetFilesEditController.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@ private function __getParentFolderUrl($parentId) {
public function add() {
//レイアウトの設定
$this->viewClass = 'View';
$this->layout = 'NetCommons.modal';

$this->set('isEdit', false);

Expand Down Expand Up @@ -152,6 +151,7 @@ public function add() {
$this->NetCommons->handleValidationError($this->CabinetFile->validationErrors);

} else {
$this->layout = 'NetCommons.modal';
$this->request->data = $cabinetFile;
$this->request->data['CabinetFileTree']['parent_id'] = Hash::get(
$this->request->named,
Expand Down

0 comments on commit 173b836

Please sign in to comment.