mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-31 05:57:34 +00:00
do not allow to set revision date if document status is 'in revision'
This commit is contained in:
parent
d641a8d2ed
commit
93f6b01c7f
|
@ -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">
|
||||
|
|
Loading…
Reference in New Issue
Block a user