From 326488d0fb66b71ef025ccafe338ae88562fcd99 Mon Sep 17 00:00:00 2001 From: liumengyi Date: Thu, 26 Oct 2023 14:07:02 +0800 Subject: [PATCH] * Change sortType to sort in plan block. --- module/block/config/planblock.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/module/block/config/planblock.php b/module/block/config/planblock.php index 17f6446d35..0eb20b379c 100644 --- a/module/block/config/planblock.php +++ b/module/block/config/planblock.php @@ -5,10 +5,10 @@ $app->loadLang('productplan'); $config->block->plan = new stdclass(); $config->block->plan->dtable = new stdclass(); $config->block->plan->dtable->fieldList = array(); -$config->block->plan->dtable->fieldList['id'] = array('name' => 'id', 'title' => $lang->idAB, 'type' => 'id', 'sortType' => 1); -$config->block->plan->dtable->fieldList['title'] = array('name' => 'title', 'title' => $lang->productplan->title, 'type' => 'title', 'sortType' => 1, 'flex' => 1, 'link' => array('module' => 'productplan', 'method' => 'view', 'params' => 'planID={id}')); -$config->block->plan->dtable->fieldList['product'] = array('name' => 'product', 'title' => $lang->productplan->product, 'type' => 'text', 'sortType' => 1, 'minWidth' => 100, 'link' => array('module' => 'product', 'method' => 'browse', 'params' => 'productID={product}')); -$config->block->plan->dtable->fieldList['hour'] = array('name' => 'hour', 'title' => $lang->productplan->hour, 'type' => 'text', 'sortType' => 1, 'align' => 'right'); -$config->block->plan->dtable->fieldList['bugs'] = array('name' => 'bugs', 'title' => $lang->productplan->bugs, 'type' => 'number', 'sortType' => 1); -$config->block->plan->dtable->fieldList['begin'] = array('name' => 'begin', 'title' => $lang->productplan->begin, 'type' => 'date', 'sortType' => 1); -$config->block->plan->dtable->fieldList['end'] = array('name' => 'end', 'title' => $lang->productplan->end, 'type' => 'date', 'sortType' => 1); +$config->block->plan->dtable->fieldList['id'] = array('name' => 'id', 'title' => $lang->idAB, 'type' => 'id', 'sort' => true); +$config->block->plan->dtable->fieldList['title'] = array('name' => 'title', 'title' => $lang->productplan->title, 'type' => 'title', 'sort' => true, 'flex' => 1, 'link' => array('module' => 'productplan', 'method' => 'view', 'params' => 'planID={id}')); +$config->block->plan->dtable->fieldList['product'] = array('name' => 'product', 'title' => $lang->productplan->product, 'type' => 'text', 'sort' => true, 'minWidth' => 100, 'link' => array('module' => 'product', 'method' => 'browse', 'params' => 'productID={product}')); +$config->block->plan->dtable->fieldList['hour'] = array('name' => 'hour', 'title' => $lang->productplan->hour, 'type' => 'text', 'sort' => 'number', 'align' => 'right'); +$config->block->plan->dtable->fieldList['bugs'] = array('name' => 'bugs', 'title' => $lang->productplan->bugs, 'type' => 'number', 'sort' => true); +$config->block->plan->dtable->fieldList['begin'] = array('name' => 'begin', 'title' => $lang->productplan->begin, 'type' => 'date', 'sort' => 'date'); +$config->block->plan->dtable->fieldList['end'] = array('name' => 'end', 'title' => $lang->productplan->end, 'type' => 'date', 'sort' => 'date');