Commit 194d0e5f authored by Prosper De Laure's avatar Prosper De Laure
Browse files

Correction

parent 7976bd6f
......@@ -353,14 +353,13 @@
var retentionRuleTable = $('#retentionRuleTable');
if (retentionRuleCode) {
var retentionRuleDurationUnit = retentionRuleCode.duration.substr(retentionRuleCode.duration.length - 1, 1);
var retentionRuleDuration = (retentionRuleCode.duration.split(retentionRuleDurationUnit))[0].split("P");
if (rule) {
$('#retentionRule').css("display", '');
if(retentionRuleDuration[1] == 999999){
if(retentionRuleDuration[1] >= 9999){
$('#retentionRuleDuration').text($('#text_unlimited').text());
} else {
$('#retentionRuleDuration').text(retentionRuleDuration[1] + ' ' + $('#text_' + retentionRuleDurationUnit).html());
......@@ -369,7 +368,7 @@
$('#retentionRuleDescription').text(retentionRuleCode.description);
} else {
$('#retentionRule').css("display", '');
if(retentionRuleDuration[1] == 999999){
if(retentionRuleDuration[1] >= 9999){
$('#retentionRuleDuration').text($('#text_unlimited').text());
} else {
$('#retentionRuleDuration').text(retentionRuleDuration[1] + ' ' + $('#text_' + retentionRuleDurationUnit).html());
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment