* Rename config->maxBatchCreate to config->batchCreateNumber.

This commit is contained in:
xushenjie
2023-05-11 02:30:51 +00:00
parent 7f758b2d8e
commit 84c2fd3dd4
3 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -2,8 +2,8 @@
declare(strict_types=1);
$config->todo = new stdclass();
$config->todo->maxBatchCreate = 8;
$config->todo->defaultPri = 3;
$config->todo->batchCreateNumber = 8;
$config->todo->defaultPri = 3;
$config->todo->create = new stdclass();
$config->todo->edit = new stdclass();
+1 -1
View File
@@ -40,7 +40,7 @@ class todoModel extends model
$validTodos = array();
$assignedTo = $this->app->user->account;
for($loop = 0; $loop < $this->config->todo->maxBatchCreate; $loop++)
for($loop = 0; $loop < $this->config->todo->batchCreateNumber; $loop++)
{
$isExist = false;
$assignedTo = $todos->assignedTos[$loop] == 'ditto' ? $assignedTo : $todos->assignedTos[$loop];
+1 -1
View File
@@ -60,7 +60,7 @@
<tbody>
<?php $pri = 3;?>
<?php $time = $date != date('Y-m-d') ? key($times) : $time;?>
<?php for($i = 0; $i < $config->todo->maxBatchCreate; $i++):?>
<?php for($i = 0; $i < $config->todo->batchCreateNumber; $i++):?>
<tr class='text-left'>
<td class='col-id'><?php echo $i+1;?></td>
<td class="visible <?php echo zget($visibleFields, 'type', 'hidden')?>"><?php echo html::select("types[$i]", $lang->todo->typeList, '', "onchange='loadList(this.value, " . ($i + 1) . ")' class='form-control'");?></td>