mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-06-01 22:47:19 +00:00
preset value for sequence if sequenc cannot be edited
This commit is contained in:
parent
b29198faf2
commit
c9aaa68925
|
@ -239,6 +239,22 @@ $(document).ready(function() {
|
|||
}
|
||||
if(!$nodocumentformfields || !in_array('sequence', $nodocumentformfields)) {
|
||||
$this->formField(getMLText("sequence"), $this->getSequenceChooser($folder->getDocuments('s')).($orderby != 's' ? "<br />".getMLText('order_by_sequence_off') : ''));
|
||||
} else {
|
||||
$minmax = $folder->getDocumentsMinMax();
|
||||
if($this->params['defaultposition'] == 'start') {
|
||||
$seq = $minmax['min'] - 1;
|
||||
} else {
|
||||
$seq = $minmax['max'] + 1;
|
||||
}
|
||||
$this->formField(
|
||||
null,
|
||||
array(
|
||||
'element'=>'input',
|
||||
'type'=>'hidden',
|
||||
'name'=>'sequence',
|
||||
'value'=>$seq,
|
||||
)
|
||||
);
|
||||
}
|
||||
if(!$nodocumentformfields || !in_array('expires', $nodocumentformfields)) {
|
||||
if($presetexpiration) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user