Thêm nút chọn tất cả
This commit is contained in:
@@ -383,7 +383,7 @@ class DeviceController extends Controller {
|
||||
Yii::$app->response->format = "json";
|
||||
$post = Yii::$app->request->post();
|
||||
$lists = $post["lists"];
|
||||
if ($post["all"] && count($lists) >= 20) {
|
||||
if ($post["all"] === "true") {
|
||||
$temp = [];
|
||||
$devices = Device::find()->all();
|
||||
foreach ($devices as $key => $value) {
|
||||
@@ -548,7 +548,7 @@ class DeviceController extends Controller {
|
||||
Yii::$app->response->format = "json";
|
||||
$post = Yii::$app->request->post();
|
||||
$lists = $post["lists"];
|
||||
if ($post["all"] && count($lists) >= 20) {
|
||||
if ($post["all"] === "true") {
|
||||
$temp = [];
|
||||
$devices = Device::find()->all();
|
||||
foreach ($devices as $key => $value) {
|
||||
|
||||
Reference in New Issue
Block a user