Skip to content

Commit

Permalink
SERP-854
Browse files Browse the repository at this point in the history
房源搜索--搜索“不限”状态+公共盘的房源,只会搜索出流通状态的房源;如图
  • Loading branch information
zhichao-poper committed May 18, 2017
1 parent 7e80e76 commit db23642
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/Controllers/DictController.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

namespace Zhuzhichao\LaravelDbDict\Controllers;

use Illuminate\Database\Eloquent\Collection;
Expand All @@ -19,7 +20,7 @@ public function index()
/** @var DbTable $currentTable */
$currentTable = DbTable::find($tableId);
// Get All Columns By TableId
$columns = $currentTable->columns;
$columns = $currentTable ? $currentTable->columns : [];

return view('LarevelDbDict::index')->withTables($tables)->withColumns($columns)->withCurrentTable($currentTable);
}
Expand All @@ -29,8 +30,8 @@ public function updateColumn($column_id)
/** @var DbColumn $column */
$column = DbColumn::find($column_id);

if (empty( $column )) {
return [ ];
if (empty($column)) {
return [];
}

$column->update([ 'description' => Request::input('description') ]);
Expand All @@ -43,8 +44,8 @@ public function updateTable($table_id)
/** @var DbTable $table */
$table = DbTable::find($table_id);

if (empty( $table )) {
return [ ];
if (empty($table)) {
return [];
}

$table->update([ 'description' => Request::input('description') ]);
Expand Down

0 comments on commit db23642

Please sign in to comment.