* Rename config->maxBatchCreate to config->batchCreateNumber.
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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];
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user