show a message if the revision date cannot be set

This commit is contained in:
Uwe Steinmann 2024-05-14 07:30:34 +02:00
parent ce0de15ce1
commit ac841494a9

View File

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