Commit 879004b9 authored by Alexandre Goldstein's avatar Alexandre Goldstein
Browse files

feat/14376 : add displayFormat in conf to show/hide in modificationModal

parent b54d8b1e
Pipeline #8907 failed with stages
......@@ -156,6 +156,11 @@ chainWithTimestamp = false;
; false = Disable
transaction = false
;To display and choose the message's format on modification Request
; true = visible
; false = hidden
formatDisplay = false
; Path to the message exchange directory
messageDirectory = "%laabsDirectory%/data/maarchRM/medona"
......
......@@ -96,6 +96,10 @@ trait archiveModificationTrait
$retentionRule->retentionDuration = $refRetentionRule->duration;
}
}
if (isset(\laabs::configuration("medona")['formatDisplay'])) {
$formatDisplay = \laabs::configuration("medona")['formatDisplay'];
}
$retentionRuleReceived = $retentionRule;
......
......@@ -22,7 +22,7 @@
<td><strong>Message identifier</strong></td>
<td><input class="form-control" name="identifier" id="identifier" placeholder="Identifier"></td>
<tr>
<tr>
<tr id="messageFormatTr">
<td><strong>Message format</strong></td>
<td>
<select class="form-control" name="format" id="format">
......
......@@ -128,6 +128,13 @@
$('#derogationInputTr').hide();
}
//TODO change condition below user set formatDisplay to true
// if (type === 'requestModification' && formatDisplay === false)
if (type === 'requestModification')
{
$('#messageFormatTr').hide();
}
if (!transaction) {
$('#message').hide();
}
......
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