mirror of
https://github.com/silverstripe/silverstripe-dms
synced 2024-10-22 14:05:56 +02:00
BUGFIX: fixing small problem with not setting the expiry off again
This commit is contained in:
parent
2dbd0d89c1
commit
7debe98641
@ -566,8 +566,8 @@ class DMSDocument extends DataObject implements DMSDocumentInterface {
|
|||||||
if ($this->Embargo == 3) $this->embargoUntilDate($this->EmbargoedUntilDate, false);
|
if ($this->Embargo == 3) $this->embargoUntilDate($this->EmbargoedUntilDate, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isset($this->Expire)) {
|
if (isset($this->Expiry)) {
|
||||||
if ($this->Expire == 1) $this->expireAtDate($this->ExpireAtDate, false);
|
if ($this->Expiry == 1) $this->expireAtDate($this->ExpireAtDate, false);
|
||||||
else $this->clearExpiry(false); //clear all previous settings
|
else $this->clearExpiry(false); //clear all previous settings
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -82,6 +82,10 @@
|
|||||||
|
|
||||||
//show the replace panel when the page loads
|
//show the replace panel when the page loads
|
||||||
$('li[data-panel="embargo"]').click();
|
$('li[data-panel="embargo"]').click();
|
||||||
|
|
||||||
|
//set the initial state of the radio button and the associated dropdown hiding
|
||||||
|
$('#Form_ItemEditForm_Embargo input').change();
|
||||||
|
$('#Form_ItemEditForm_Expiry input').change();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user