Skip to content

Commit

Permalink
3.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
nilsteampassnet committed Sep 20, 2024
1 parent 3b08126 commit 021d11a
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 6 deletions.
2 changes: 1 addition & 1 deletion includes/config/include.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

define('TP_VERSION', '3.1.2');
define("UPGRADE_MIN_DATE", "1724862801");
define('TP_VERSION_MINOR', '87');
define('TP_VERSION_MINOR', '88');
define('TP_TOOL_NAME', 'Teampass');
define('TP_ONE_DAY_SECONDS', 86400);
define('TP_ONE_WEEK_SECONDS', 604800);
Expand Down
4 changes: 2 additions & 2 deletions includes/tables_integrity.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
},
{
"table_name": "background_tasks_logs",
"structure_hash": "8eb5125b4bca94d47e159bd25613e75395a308f8c3b944f7ce7da16bfdf37fd0"
"structure_hash": "8050422b9d72cfe39e21afbaaaec36acc4608b336a535edab481cb8dbd6909bc"
},
{
"table_name": "cache",
Expand Down Expand Up @@ -101,7 +101,7 @@
},
{
"table_name": "log_system",
"structure_hash": "cc006a2c8103e056a09321d952742d93b707dc247dd53f97d352c2df94fca56a"
"structure_hash": "9b7f7260f6f5f9f86cdaee8135d56e1cf326368f90fd995ba1d977274080ba4a"
},
{
"table_name": "misc",
Expand Down
3 changes: 2 additions & 1 deletion pages/folders.js.php
Original file line number Diff line number Diff line change
Expand Up @@ -761,6 +761,7 @@ function(data) {
$('#folder-edit-parent').val(folderParent).change();
$('#folder-edit-complexity').val(folderComplexity).change();

$('#folder-edit-renewal').val(folderRenewal).change();
currentFolderEdited = '';
});

Expand Down Expand Up @@ -791,7 +792,7 @@ function(data) {
'title': purifyRes.arrFields['title'], //$('#folder-edit-title').val(),
'parentId': $('#folder-edit-parent').val(),
'complexity': $('#folder-edit-complexity').val(),
'renewalPeriod': $('#new-renewal').val() === '' ? 0 : parseInt($('#new-renewal').val()),
'renewalPeriod': $('#folder-edit-renewal').val() === '' ? 0 : parseInt($('#folder-edit-renewal').val()),
'addRestriction': $('#folder-edit-add-restriction').prop("checked") === true ? 1 : 0,
'editRestriction': $('#folder-edit-edit-restriction').prop("checked") === true ? 1 : 0,
'icon': purifyRes.arrFields['icon'], //$('#folder-edit-icon').val(),
Expand Down
2 changes: 1 addition & 1 deletion pages/roles.js.php
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ function(data) {
$('.infotip').tooltip();

// Adapt select
$('#folders-depth').val('').change();
$('#folders-depth').empty().change();
$('#folders-depth').append('<option value="all"><?php echo $lang->get('all'); ?></option>');
for (x = 1; x < max_folder_depth; x++) {
$('#folders-depth').append('<option value="' + x + '">' + x + '</option>');
Expand Down
6 changes: 5 additions & 1 deletion sources/folders.queries.php
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,11 @@
$arrayColumns['folderComplexity'] = '';
}

$arrayColumns['renewalPeriod'] = (int) is_null($node_data) === false ? $node_data['renewal_period'] : 0;
if (is_null($node_data)=== false) {
$arrayColumns['renewalPeriod'] = (int) $node_data['renewal_period'];
} else {
$arrayColumns['renewalPeriod']=0;
}

//col7
$data7 = DB::queryFirstRow(
Expand Down

0 comments on commit 021d11a

Please sign in to comment.