Merge branch 'master' of github.com:easysoft/zentaopms
This commit is contained in:
@@ -40,9 +40,9 @@ $config->bug->list->customBatchCreateFields = 'module,project,steps,type,pri,sev
|
||||
$config->bug->list->customBatchEditFields = 'type,severity,pri,productplan,assignedTo,status,resolvedBy,resolution,os,browser,keywords';
|
||||
|
||||
$config->bug->custom = new stdclass();
|
||||
$config->bug->custom->create = $config->bug->list->customCreateFields;
|
||||
$config->bug->custom->batchcreate = 'module,project,steps,type,severity,os,browser';
|
||||
$config->bug->custom->batchedit = 'type,severity,pri,assignedTo,status,resolvedBy,resolution';
|
||||
$config->bug->custom->createFields = $config->bug->list->customCreateFields;
|
||||
$config->bug->custom->batchCreateFields = 'module,project,steps,type,severity,os,browser';
|
||||
$config->bug->custom->batchEditFields = 'type,severity,pri,assignedTo,status,resolvedBy,resolution';
|
||||
|
||||
$config->bug->editor = new stdclass();
|
||||
$config->bug->editor->create = array('id' => 'steps', 'tools' => 'bugTools');
|
||||
|
||||
@@ -309,7 +309,7 @@ class bug extends control
|
||||
/* Set custom. */
|
||||
foreach(explode(',', $this->config->bug->list->customCreateFields) as $field) $customFields[$field] = $this->lang->bug->$field;
|
||||
$this->view->customFields = $customFields;
|
||||
$this->view->showFields = $this->config->bug->custom->create;
|
||||
$this->view->showFields = $this->config->bug->custom->createFields;
|
||||
|
||||
$this->view->title = $this->products[$productID] . $this->lang->colon . $this->lang->bug->create;
|
||||
$this->view->position[] = html::a($this->createLink('bug', 'browse', "productID=$productID"), $this->products[$productID]);
|
||||
@@ -396,7 +396,7 @@ class bug extends control
|
||||
/* Set custom. */
|
||||
foreach(explode(',', $this->config->bug->list->customBatchCreateFields) as $field) $customFields[$field] = $this->lang->bug->$field;
|
||||
$this->view->customFields = $customFields;
|
||||
$this->view->showFields = $this->config->bug->custom->batchcreate;
|
||||
$this->view->showFields = $this->config->bug->custom->batchCreateFields;
|
||||
|
||||
$this->view->title = $this->products[$productID] . $this->lang->colon . $this->lang->bug->batchCreate;
|
||||
$this->view->position[] = html::a($this->createLink('bug', 'browse', "productID=$productID&branch=$branch"), $this->products[$productID]);
|
||||
@@ -635,14 +635,14 @@ class bug extends control
|
||||
|
||||
/* Judge whether the editedTasks is too large and set session. */
|
||||
$showSuhosinInfo = false;
|
||||
$showSuhosinInfo = $this->loadModel('common')->judgeSuhosinSetting(count($bugs), count(explode(',', $this->config->bug->custom->batchedit)) + 2);
|
||||
$showSuhosinInfo = $this->loadModel('common')->judgeSuhosinSetting(count($bugs), count(explode(',', $this->config->bug->custom->batchEditFields)) + 2);
|
||||
$this->app->session->set('showSuhosinInfo', $showSuhosinInfo);
|
||||
if($showSuhosinInfo) $this->view->suhosinInfo = $this->lang->suhosinInfo;
|
||||
|
||||
/* Set Custom*/
|
||||
foreach(explode(',', $this->config->bug->list->customBatchEditFields) as $field) $customFields[$field] = $this->lang->bug->$field;
|
||||
$this->view->customFields = $customFields;
|
||||
$this->view->showFields = $this->config->bug->custom->batchedit;
|
||||
$this->view->showFields = $this->config->bug->custom->batchEditFields;
|
||||
|
||||
/* Set users. */
|
||||
$users = $this->user->getPairs('nodeleted,devfirst');
|
||||
|
||||
@@ -143,7 +143,7 @@ foreach(explode(',', $showFields) as $field)
|
||||
</tbody>
|
||||
</table>
|
||||
<?php js::set('branch', $branch)?>
|
||||
<?php $customLink = $this->createLink('custom', 'ajaxSaveCustom', 'module=bug§ion=custom&key=batchcreate')?>
|
||||
<?php $customLink = $this->createLink('custom', 'ajaxSaveCustom', 'module=bug§ion=custom&key=batchCreateFields')?>
|
||||
<?php include '../../common/view/customfield.html.php';?>
|
||||
<?php include '../../common/view/pastetext.html.php';?>
|
||||
<?php include '../../common/view/footer.html.php';?>
|
||||
|
||||
@@ -100,6 +100,6 @@ $columns = count($hasFields) + 2;
|
||||
</tfoot>
|
||||
</table>
|
||||
</form>
|
||||
<?php $customLink = $this->createLink('custom', 'ajaxSaveCustom', 'module=bug§ion=custom&key=batchedit')?>
|
||||
<?php $customLink = $this->createLink('custom', 'ajaxSaveCustom', 'module=bug§ion=custom&key=batchEditFields')?>
|
||||
<?php include '../../common/view/customfield.html.php';?>
|
||||
<?php include '../../common/view/footer.html.php';?>
|
||||
|
||||
@@ -268,6 +268,6 @@ js::set('refresh', $lang->refresh);
|
||||
</div>
|
||||
</div>
|
||||
<?php js::set('bugModule', $lang->bug->module);?>
|
||||
<?php $customLink = $this->createLink('custom', 'ajaxSaveCustom', 'module=bug§ion=custom&key=create');?>
|
||||
<?php $customLink = $this->createLink('custom', 'ajaxSaveCustom', 'module=bug§ion=custom&key=createFields');?>
|
||||
<?php include '../../common/view/customfield.html.php';?>
|
||||
<?php include '../../common/view/footer.html.php';?>
|
||||
|
||||
@@ -5,7 +5,7 @@ $config->product->orderBy = 'isClosed,order_desc';
|
||||
$config->product->customBatchEditFields = 'PO,QD,RD,status,type,desc';
|
||||
|
||||
$config->product->custom = new stdclass();
|
||||
$config->product->custom->batchedit = 'PO,QD,RD,status';
|
||||
$config->product->custom->batchEditFields = 'PO,QD,RD,status';
|
||||
|
||||
global $lang, $app;
|
||||
$app->loadLang('story');
|
||||
|
||||
@@ -288,7 +288,7 @@ class product extends control
|
||||
/* Set custom. */
|
||||
foreach(explode(',', $this->config->product->customBatchEditFields) as $field) $customFields[$field] = $this->lang->product->$field;
|
||||
$this->view->customFields = $customFields;
|
||||
$this->view->showFields = $this->config->product->custom->batchedit;
|
||||
$this->view->showFields = $this->config->product->custom->batchEditFields;
|
||||
|
||||
$this->view->title = $this->lang->product->batchEdit;
|
||||
$this->view->position[] = $this->lang->product->batchEdit;
|
||||
|
||||
@@ -59,6 +59,6 @@ foreach(explode(',', $showFields) as $field)
|
||||
<tr><td colspan='<?php echo count($hasFields) + 4?>' class='text-center'><?php echo html::submitButton();?></td></tr>
|
||||
</table>
|
||||
</form>
|
||||
<?php $customLink = $this->createLink('custom', 'ajaxSaveCustom', 'module=product§ion=custom&key=batchedit')?>
|
||||
<?php $customLink = $this->createLink('custom', 'ajaxSaveCustom', 'module=product§ion=custom&key=batchEditFields')?>
|
||||
<?php include '../../common/view/customfield.html.php';?>
|
||||
<?php include '../../common/view/footer.html.php';?>
|
||||
|
||||
@@ -14,7 +14,7 @@ $config->project->edit->requiredFields = 'name,code,begin,end';
|
||||
$config->project->customBatchEditFields = 'days,type,teamname,status,desc,PO,QD,PM,RD';
|
||||
|
||||
$config->project->custom = new stdclass();
|
||||
$config->project->custom->batchedit = 'days,status,PM';
|
||||
$config->project->custom->batchEditFields = 'days,status,PM';
|
||||
|
||||
$config->project->editor = new stdclass();
|
||||
$config->project->editor->create = array('id' => 'desc', 'tools' => 'simpleTools');
|
||||
|
||||
@@ -999,7 +999,7 @@ class project extends control
|
||||
/* Set custom. */
|
||||
foreach(explode(',', $this->config->project->customBatchEditFields) as $field) $customFields[$field] = $this->lang->project->$field;
|
||||
$this->view->customFields = $customFields;
|
||||
$this->view->showFields = $this->config->project->custom->batchedit;
|
||||
$this->view->showFields = $this->config->project->custom->batchEditFields;
|
||||
|
||||
$this->view->title = $this->lang->project->batchEdit;
|
||||
$this->view->position[] = $this->lang->project->batchEdit;
|
||||
|
||||
@@ -76,6 +76,6 @@ $minWidth = (count($hasFields) > 5) ? 'w-150px' : '';
|
||||
<tr><td colspan='<?php echo count($hasFields) + 6?>' class='text-center'><?php echo html::submitButton();?></td></tr>
|
||||
</table>
|
||||
</form>
|
||||
<?php $customLink = $this->createLink('custom', 'ajaxSaveCustom', 'module=project§ion=custom&key=batchedit')?>
|
||||
<?php $customLink = $this->createLink('custom', 'ajaxSaveCustom', 'module=project§ion=custom&key=batchEditFields')?>
|
||||
<?php include '../../common/view/customfield.html.php';?>
|
||||
<?php include '../../common/view/footer.html.php';?>
|
||||
|
||||
@@ -28,7 +28,7 @@ $config->story->editor->review = array('id' => 'comment', 'tools' => 'simpleTo
|
||||
$config->story->editor->activate = array('id' => 'comment', 'tools' => 'simpleTools');
|
||||
|
||||
$config->story->list = new stdclass();
|
||||
$config->story->list->exportFields = '
|
||||
$config->story->list->exportFields = '
|
||||
id, product, module, plan, source, title, spec, verify, keywords,
|
||||
pri, estimate, status, stage,
|
||||
openedBy, openedDate, assignedTo, assignedDate, mailto,
|
||||
@@ -36,14 +36,15 @@ $config->story->list->exportFields = '
|
||||
closedBy, closedDate, closedReason,
|
||||
lastEditedBy, lastEditedDate,
|
||||
childStories, linkStories, duplicateStory, files';
|
||||
$config->story->list->customCreateFields = 'source,verify,pri,estimate,mailto,keywords';
|
||||
$config->story->list->batchCreateFields = 'module,plan,source,spec,verify,pri,estimate,review,keywords';
|
||||
$config->story->list->batchEditFields = 'module,plan,estimate,pri,assignedTo,source,stage,closedBy,closedReason,keywords';
|
||||
|
||||
$config->story->list->customCreateFields = 'source,verify,pri,estimate,mailto,keywords';
|
||||
$config->story->list->customBatchCreateFields = 'module,plan,source,spec,verify,pri,estimate,review,keywords';
|
||||
$config->story->list->customBatchEditFields = 'module,plan,estimate,pri,assignedTo,source,stage,closedBy,closedReason,keywords';
|
||||
|
||||
$config->story->custom = new stdclass();
|
||||
$config->story->custom->create = $config->story->list->customCreateFields;
|
||||
$config->story->custom->batchcreate = 'module,plan,spec,pri,estimate,review';
|
||||
$config->story->custom->batchedit = 'module,plan,estimate,pri,source,stage,closedBy,closedReason';
|
||||
$config->story->custom->createFields = $config->story->list->customCreateFields;
|
||||
$config->story->custom->batchCreateFields = 'module,plan,spec,pri,estimate,review';
|
||||
$config->story->custom->batchEditFields = 'module,plan,estimate,pri,source,stage,closedBy,closedReason';
|
||||
|
||||
$config->story->datatable = new stdclass();
|
||||
$config->story->datatable->defaultField = array('id', 'pri', 'title', 'plan', 'source', 'openedBy', 'assignedTo', 'estimate', 'status', 'stage', 'actions');
|
||||
|
||||
@@ -164,7 +164,7 @@ class story extends control
|
||||
/* Set Custom*/
|
||||
foreach(explode(',', $this->config->story->list->customCreateFields) as $field) $customFields[$field] = $this->lang->story->$field;
|
||||
$this->view->customFields = $customFields;
|
||||
$this->view->showFields = $this->config->story->custom->create;
|
||||
$this->view->showFields = $this->config->story->custom->createFields;
|
||||
|
||||
$this->view->title = $product->name . $this->lang->colon . $this->lang->story->create;
|
||||
$this->view->position[] = html::a($this->createLink('product', 'browse', "product=$productID&branch=$branch"), $product->name);
|
||||
@@ -250,9 +250,9 @@ class story extends control
|
||||
$sourceList['ditto'] = $this->lang->story->ditto;
|
||||
|
||||
/* Set Custom*/
|
||||
foreach(explode(',', $this->config->story->list->batchCreateFields) as $field) $customFields[$field] = $this->lang->story->$field;
|
||||
foreach(explode(',', $this->config->story->list->customBatchCreateFields) as $field) $customFields[$field] = $this->lang->story->$field;
|
||||
$this->view->customFields = $customFields;
|
||||
$this->view->showFields = $this->config->story->custom->batchcreate;
|
||||
$this->view->showFields = $this->config->story->custom->batchCreateFields;
|
||||
|
||||
$this->view->title = $product->name . $this->lang->colon . $this->lang->story->batchCreate;
|
||||
$this->view->productName = $product->name;
|
||||
@@ -430,13 +430,13 @@ class story extends control
|
||||
$this->lang->story->reasonList['ditto'] = $this->lang->story->ditto;
|
||||
|
||||
/* Set Custom*/
|
||||
foreach(explode(',', $this->config->story->list->batchEditFields) as $field) $customFields[$field] = $this->lang->story->$field;
|
||||
foreach(explode(',', $this->config->story->list->customBatchEditFields) as $field) $customFields[$field] = $this->lang->story->$field;
|
||||
$this->view->customFields = $customFields;
|
||||
$this->view->showFields = $this->config->story->custom->batchedit;
|
||||
$this->view->showFields = $this->config->story->custom->batchEditFields;
|
||||
|
||||
/* Judge whether the editedStories is too large and set session. */
|
||||
$showSuhosinInfo = false;
|
||||
$showSuhosinInfo = $this->loadModel('common')->judgeSuhosinSetting(count($stories), count(explode(',', $this->config->story->custom->batchedit)) + 3);
|
||||
$showSuhosinInfo = $this->loadModel('common')->judgeSuhosinSetting(count($stories), count(explode(',', $this->config->story->custom->batchEditFields)) + 3);
|
||||
$this->app->session->set('showSuhosinInfo', $showSuhosinInfo);
|
||||
if($showSuhosinInfo) $this->view->suhosinInfo = $this->lang->suhosinInfo;
|
||||
|
||||
|
||||
@@ -114,7 +114,7 @@ foreach(explode(',', $showFields) as $field)
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<?php $customLink = $this->createLink('custom', 'ajaxSaveCustom', 'module=story§ion=custom&key=batchcreate')?>
|
||||
<?php $customLink = $this->createLink('custom', 'ajaxSaveCustom', 'module=story§ion=custom&key=batchCreateFields')?>
|
||||
<?php include '../../common/view/customfield.html.php';?>
|
||||
<?php include '../../common/view/pastetext.html.php';?>
|
||||
<?php include '../../common/view/footer.html.php';?>
|
||||
|
||||
@@ -108,6 +108,6 @@ foreach(explode(',', $showFields) as $field)
|
||||
</tfoot>
|
||||
</table>
|
||||
</form>
|
||||
<?php $customLink = $this->createLink('custom', 'ajaxSaveCustom', 'module=story§ion=custom&key=batchedit')?>
|
||||
<?php $customLink = $this->createLink('custom', 'ajaxSaveCustom', 'module=story§ion=custom&key=batchEditFields')?>
|
||||
<?php include '../../common/view/customfield.html.php';?>
|
||||
<?php include '../../common/view/footer.html.php';?>
|
||||
|
||||
@@ -177,7 +177,7 @@
|
||||
<span id='responser'></span>
|
||||
</form>
|
||||
</div>
|
||||
<?php $customLink = $this->createLink('custom', 'ajaxSaveCustom', 'module=story§ion=custom&key=create')?>
|
||||
<?php $customLink = $this->createLink('custom', 'ajaxSaveCustom', 'module=story§ion=custom&key=createFields')?>
|
||||
<?php include '../../common/view/customfield.html.php';?>
|
||||
<?php js::set('storyModule', $lang->story->module);?>
|
||||
<?php include '../../common/view/footer.html.php';?>
|
||||
|
||||
@@ -37,14 +37,14 @@ $config->task->exportFields = '
|
||||
closedBy, closedDate, closedReason,
|
||||
lastEditedBy, lastEditedDate,files
|
||||
';
|
||||
$config->task->customCreateFields = 'story,estStarted,deadline,mailto,pri,estimate';
|
||||
$config->task->batchCreateFields = 'module,story,assignedTo,estimate,estStarted,deadline,desc,pri';
|
||||
$config->task->batchEditFields = 'module,assignedTo,status,pri,estimate,record,left,estStarted,deadline,finishedBy,canceledBy,closedBy,closedReason';
|
||||
$config->task->customCreateFields = 'story,estStarted,deadline,mailto,pri,estimate';
|
||||
$config->task->customBatchCreateFields = 'module,story,assignedTo,estimate,estStarted,deadline,desc,pri';
|
||||
$config->task->customBatchEditFields = 'module,assignedTo,status,pri,estimate,record,left,estStarted,deadline,finishedBy,canceledBy,closedBy,closedReason';
|
||||
|
||||
$config->task->custom = new stdclass();
|
||||
$config->task->custom->create = $config->task->customCreateFields;
|
||||
$config->task->custom->batchcreate = 'module,story,assignedTo,estimate,desc,pri';
|
||||
$config->task->custom->batchedit = 'module,assignedTo,status,pri,estimate,record,left,finishedBy,closedBy,closedReason';
|
||||
$config->task->custom->createFields = $config->task->customCreateFields;
|
||||
$config->task->custom->batchCreateFields = 'module,story,assignedTo,estimate,desc,pri';
|
||||
$config->task->custom->batchEditFields = 'module,assignedTo,status,pri,estimate,record,left,finishedBy,closedBy,closedReason';
|
||||
|
||||
$config->task->datatable = new stdclass();
|
||||
$config->task->datatable->defaultField = array('id', 'pri', 'name', 'status', 'deadline', 'openedDate', 'assignedTo', 'finishedBy', 'finishedDate', 'estimate', 'consumed', 'left', 'story', 'actions');
|
||||
|
||||
@@ -144,7 +144,7 @@ class task extends control
|
||||
/* Set Custom*/
|
||||
foreach(explode(',', $this->config->task->customCreateFields) as $field) $customFields[$field] = $this->lang->task->$field;
|
||||
$this->view->customFields = $customFields;
|
||||
$this->view->showFields = $this->config->task->custom->create;
|
||||
$this->view->showFields = $this->config->task->custom->createFields;
|
||||
|
||||
$this->view->title = $title;
|
||||
$this->view->position = $position;
|
||||
@@ -187,9 +187,9 @@ class task extends control
|
||||
}
|
||||
|
||||
/* Set Custom*/
|
||||
foreach(explode(',', $this->config->task->batchCreateFields) as $field) $customFields[$field] = $this->lang->task->$field;
|
||||
foreach(explode(',', $this->config->task->customBatchCreateFields) as $field) $customFields[$field] = $this->lang->task->$field;
|
||||
$this->view->customFields = $customFields;
|
||||
$this->view->showFields = $this->config->task->custom->batchcreate;
|
||||
$this->view->showFields = $this->config->task->custom->batchCreateFields;
|
||||
|
||||
$stories = $this->story->getProjectStoryPairs($projectID, 0, 0, 0, 'short');
|
||||
$members = $this->project->getTeamMemberPairs($projectID, 'nodeleted');
|
||||
@@ -370,14 +370,14 @@ class task extends control
|
||||
|
||||
/* Judge whether the editedTasks is too large and set session. */
|
||||
$showSuhosinInfo = false;
|
||||
$showSuhosinInfo = $this->loadModel('common')->judgeSuhosinSetting(count($tasks), count(explode(',', $this->config->task->custom->batchedit)) + 3);
|
||||
$showSuhosinInfo = $this->loadModel('common')->judgeSuhosinSetting(count($tasks), count(explode(',', $this->config->task->custom->batchEditFields)) + 3);
|
||||
$this->app->session->set('showSuhosinInfo', $showSuhosinInfo);
|
||||
if($showSuhosinInfo) $this->view->suhosinInfo = $this->lang->suhosinInfo;
|
||||
|
||||
/* Set Custom*/
|
||||
foreach(explode(',', $this->config->task->batchEditFields) as $field) $customFields[$field] = $this->lang->task->$field;
|
||||
foreach(explode(',', $this->config->task->customBatchEditFields) as $field) $customFields[$field] = $this->lang->task->$field;
|
||||
$this->view->customFields = $customFields;
|
||||
$this->view->showFields = $this->config->task->custom->batchedit;
|
||||
$this->view->showFields = $this->config->task->custom->batchEditFields;
|
||||
|
||||
/* Set ditto option for pri, status and type list. */
|
||||
$this->lang->task->priList['ditto'] = $this->lang->task->ditto;
|
||||
|
||||
@@ -118,7 +118,7 @@ foreach(explode(',', $showFields) as $field)
|
||||
</table>
|
||||
<?php js::set('mainField', 'name');?>
|
||||
<?php js::set('ditto', $lang->task->ditto);?>
|
||||
<?php $customLink = $this->createLink('custom', 'ajaxSaveCustom', 'module=task§ion=custom&key=batchcreate')?>
|
||||
<?php $customLink = $this->createLink('custom', 'ajaxSaveCustom', 'module=task§ion=custom&key=batchCreateFields')?>
|
||||
<?php include '../../common/view/customfield.html.php';?>
|
||||
<?php include '../../common/view/pastetext.html.php';?>
|
||||
<?php include '../../common/view/footer.html.php';?>
|
||||
|
||||
@@ -95,6 +95,6 @@ foreach(explode(',', $showFields) as $field)
|
||||
</tfoot>
|
||||
</table>
|
||||
</form>
|
||||
<?php $customLink = $this->createLink('custom', 'ajaxSaveCustom', 'module=task§ion=custom&key=batchedit')?>
|
||||
<?php $customLink = $this->createLink('custom', 'ajaxSaveCustom', 'module=task§ion=custom&key=batchEditFields')?>
|
||||
<?php include '../../common/view/customfield.html.php';?>
|
||||
<?php include '../../common/view/footer.html.php';?>
|
||||
|
||||
@@ -154,6 +154,6 @@
|
||||
<span id='responser'></span>
|
||||
</form>
|
||||
</div>
|
||||
<?php $customLink = $this->createLink('custom', 'ajaxSaveCustom', 'module=task§ion=custom&key=create')?>
|
||||
<?php $customLink = $this->createLink('custom', 'ajaxSaveCustom', 'module=task§ion=custom&key=createFields')?>
|
||||
<?php include '../../common/view/customfield.html.php';?>
|
||||
<?php include '../../common/view/footer.html.php';?>
|
||||
|
||||
@@ -21,14 +21,14 @@ $config->testcase->exportFields = '
|
||||
pri, type, stage, status, lastRunResult, openedBy, openedDate,
|
||||
lastEditedBy, lastEditedDate, version,linkCase';
|
||||
|
||||
$config->testcase->customCreateFields = 'stage,story,pri,keywords';
|
||||
$config->testcase->customCreateFields = 'story,stage,pri,keywords';
|
||||
$config->testcase->customBatchCreateFields = 'module,stage,story,pri,precondition,keywords';
|
||||
$config->testcase->customBatchEditFields = 'module,stage,precondition,status,pri,keywords';
|
||||
|
||||
$config->testcase->custom = new stdclass();
|
||||
$config->testcase->custom->create = $config->testcase->customCreateFields;
|
||||
$config->testcase->custom->batchcreate = 'module,story';
|
||||
$config->testcase->custom->batchedit = 'module,stage,status,pri';
|
||||
$config->testcase->custom->createFields = $config->testcase->customCreateFields;
|
||||
$config->testcase->custom->batchCreateFields = 'module,story';
|
||||
$config->testcase->custom->batchEditFields = 'module,stage,status,pri';
|
||||
|
||||
global $lang;
|
||||
$config->testcase->search['module'] = 'testcase';
|
||||
|
||||
@@ -303,7 +303,7 @@ class testcase extends control
|
||||
/* Set custom. */
|
||||
foreach(explode(',', $this->config->testcase->customCreateFields) as $field) $customFields[$field] = $this->lang->testcase->$field;
|
||||
$this->view->customFields = $customFields;
|
||||
$this->view->showFields = $this->config->testcase->custom->create;
|
||||
$this->view->showFields = $this->config->testcase->custom->createFields;
|
||||
|
||||
$this->view->title = $title;
|
||||
$this->view->caseTitle = $caseTitle;
|
||||
@@ -372,7 +372,7 @@ class testcase extends control
|
||||
/* Set custom. */
|
||||
foreach(explode(',', $this->config->testcase->customBatchCreateFields) as $field) $customFields[$field] = $this->lang->testcase->$field;
|
||||
$this->view->customFields = $customFields;
|
||||
$this->view->showFields = $this->config->testcase->custom->batchcreate;
|
||||
$this->view->showFields = $this->config->testcase->custom->batchCreateFields;
|
||||
|
||||
$this->view->title = $this->products[$productID] . $this->lang->colon . $this->lang->testcase->batchCreate;
|
||||
$this->view->position[] = html::a($this->createLink('testcase', 'browse', "productID=$productID&branch=$branch"), $this->products[$productID]);
|
||||
@@ -600,7 +600,7 @@ class testcase extends control
|
||||
/* Set custom. */
|
||||
foreach(explode(',', $this->config->testcase->customBatchEditFields) as $field) $customFields[$field] = $this->lang->testcase->$field;
|
||||
$this->view->customFields = $customFields;
|
||||
$this->view->showFields = $this->config->testcase->custom->batchedit;
|
||||
$this->view->showFields = $this->config->testcase->custom->batchEditFields;
|
||||
|
||||
/* Assign. */
|
||||
$this->view->position[] = $this->lang->testcase->common;
|
||||
|
||||
@@ -95,7 +95,7 @@ foreach(explode(',', $showFields) as $field)
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<?php $customLink = $this->createLink('custom', 'ajaxSaveCustom', 'module=testcase§ion=custom&key=batchcreate')?>
|
||||
<?php $customLink = $this->createLink('custom', 'ajaxSaveCustom', 'module=testcase§ion=custom&key=batchCreateFields')?>
|
||||
<?php include '../../common/view/customfield.html.php';?>
|
||||
<?php include '../../common/view/pastetext.html.php';?>
|
||||
<?php include '../../common/view/footer.html.php';?>
|
||||
|
||||
@@ -75,6 +75,6 @@ foreach(explode(',', $showFields) as $field)
|
||||
</tfoot>
|
||||
</table>
|
||||
</form>
|
||||
<?php $customLink = $this->createLink('custom', 'ajaxSaveCustom', 'module=testcase§ion=custom&key=batchedit')?>
|
||||
<?php $customLink = $this->createLink('custom', 'ajaxSaveCustom', 'module=testcase§ion=custom&key=batchEditFields')?>
|
||||
<?php include '../../common/view/customfield.html.php';?>
|
||||
<?php include '../../common/view/footer.html.php';?>
|
||||
|
||||
@@ -180,7 +180,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php $customLink = $this->createLink('custom', 'ajaxSaveCustom', 'module=testcase§ion=custom&key=create');?>
|
||||
<?php $customLink = $this->createLink('custom', 'ajaxSaveCustom', 'module=testcase§ion=custom&key=createFields');?>
|
||||
<?php include '../../common/view/customfield.html.php';?>
|
||||
<?php js::set('caseModule', $lang->testcase->module)?>
|
||||
<?php include '../../common/view/footer.html.php';?>
|
||||
|
||||
@@ -10,8 +10,8 @@ $config->user->customBatchCreateFields = 'dept,email,gender,commiter,join,skype,
|
||||
$config->user->customBatchEditFields = 'dept,email,commiter,join,skype,qq,yahoo,gtalk,wangwang,mobile,phone,address,zipcode';
|
||||
|
||||
$config->user->custom = new stdclass();
|
||||
$config->user->custom->batchcreate = 'dept,email,gender';
|
||||
$config->user->custom->batchedit = 'dept,join,email,commiter';
|
||||
$config->user->custom->batchCreateFields = 'dept,email,gender';
|
||||
$config->user->custom->batchEditFields = 'dept,join,email,commiter';
|
||||
|
||||
$config->user->failTimes = 6;
|
||||
$config->user->lockMinutes = 10;
|
||||
|
||||
@@ -445,7 +445,7 @@ class user extends control
|
||||
/* Set custom. */
|
||||
foreach(explode(',', $this->config->user->customBatchCreateFields) as $field) $customFields[$field] = $this->lang->user->$field;
|
||||
$this->view->customFields = $customFields;
|
||||
$this->view->showFields = $this->config->user->custom->batchcreate;
|
||||
$this->view->showFields = $this->config->user->custom->batchCreateFields;
|
||||
|
||||
$title = $this->lang->company->common . $this->lang->colon . $this->lang->user->batchCreate;
|
||||
$position[] = $this->lang->user->batchCreate;
|
||||
@@ -518,7 +518,7 @@ class user extends control
|
||||
/* Set custom. */
|
||||
foreach(explode(',', $this->config->user->customBatchEditFields) as $field) $customFields[$field] = $this->lang->user->$field;
|
||||
$this->view->customFields = $customFields;
|
||||
$this->view->showFields = $this->config->user->custom->batchedit;
|
||||
$this->view->showFields = $this->config->user->custom->batchEditFields;
|
||||
|
||||
$this->view->title = $this->lang->company->common . $this->lang->colon . $this->lang->user->batchEdit;
|
||||
$this->view->position[] = $this->lang->user->batchEdit;
|
||||
|
||||
@@ -101,6 +101,6 @@ $minWidth = (count($hasFields) > 5) ? 'w-150px' : '';
|
||||
<tr><td colspan='<?php echo count($hasFields) + 6?>' class='text-center'><?php echo html::submitButton() . html::backButton();?></td></tr>
|
||||
</table>
|
||||
</form>
|
||||
<?php $customLink = $this->createLink('custom', 'ajaxSaveCustom', 'module=user§ion=custom&key=batchcreate')?>
|
||||
<?php $customLink = $this->createLink('custom', 'ajaxSaveCustom', 'module=user§ion=custom&key=batchCreateFields')?>
|
||||
<?php include '../../common/view/customfield.html.php';?>
|
||||
<?php include '../../common/view/footer.html.php';?>
|
||||
|
||||
@@ -93,6 +93,6 @@ $minWidth = (count($hasFields) > 7) ? 'w-120px' : '';
|
||||
<tr><td colspan='<?php echo count($hasFields) + 4?>' class='text-center'><?php echo html::submitButton() . html::backButton();?></td></tr>
|
||||
</table>
|
||||
</form>
|
||||
<?php $customLink = $this->createLink('custom', 'ajaxSaveCustom', 'module=user§ion=custom&key=batchedit')?>
|
||||
<?php $customLink = $this->createLink('custom', 'ajaxSaveCustom', 'module=user§ion=custom&key=batchEditFields')?>
|
||||
<?php include '../../common/view/customfield.html.php';?>
|
||||
<?php include '../../common/view/footer.html.php';?>
|
||||
|
||||
Reference in New Issue
Block a user