do not allow to set revision date if document status is 'in revision'

This commit is contained in:
Uwe Steinmann 2022-05-25 11:33:44 +02:00
parent d641a8d2ed
commit 93f6b01c7f

View File

@ -74,10 +74,14 @@ class SeedDMS_View_SetRevisors extends SeedDMS_Theme_Style {
<?php
$this->contentContainerStart();
$this->formField(
getMLText("revision_date"),
$this->getDateChooser($startdate, "startdate", $this->params['session']->getLanguage())
);
if($content->getStatus()['status'] == S_IN_REVISION) {
echo '<input type="hidden" name="startdate" value="" />';
} else {
$this->formField(
getMLText("revision_date"),
$this->getDateChooser($startdate, "startdate", $this->params['session']->getLanguage())
);
}
?>
<div class="control-group">