Fixed [ 1478585 ] purgeRevision without warning or confirmation
This commit is contained in:
parent
a4254f51b4
commit
a590693e53
2 changed files with 7 additions and 1 deletions
|
|
@ -134,6 +134,8 @@
|
||||||
- fix [ 1471909 ] createAccountSave not called - no validate email (Martin
|
- fix [ 1471909 ] createAccountSave not called - no validate email (Martin
|
||||||
Kamerbeek / Procolix)
|
Kamerbeek / Procolix)
|
||||||
- fix [ 1479779 ] enable select box in dataform (Martin Kamerbeek / Procolix)
|
- fix [ 1479779 ] enable select box in dataform (Martin Kamerbeek / Procolix)
|
||||||
|
- fix [ 1478585 ] purgeRevision without warning or confirmation (Martin
|
||||||
|
Kamerbee / Procolix)
|
||||||
- Added a graphing engine and tied it into the Poll asset (Martin Kamerbeek / Procolix)
|
- Added a graphing engine and tied it into the Poll asset (Martin Kamerbeek / Procolix)
|
||||||
|
|
||||||
6.8.8
|
6.8.8
|
||||||
|
|
|
||||||
|
|
@ -288,7 +288,11 @@ sub www_purgeRevision {
|
||||||
return $self->session->privilege->insufficient() unless $self->canEdit;
|
return $self->session->privilege->insufficient() unless $self->canEdit;
|
||||||
my $revisionDate = $self->session->form->process("revisionDate");
|
my $revisionDate = $self->session->form->process("revisionDate");
|
||||||
return undef unless $revisionDate;
|
return undef unless $revisionDate;
|
||||||
WebGUI::Asset->new($self->session,$self->getId,$self->get("className"),$revisionDate)->purgeRevision;
|
|
||||||
|
my $asset = WebGUI::Asset->new($self->session,$self->getId,$self->get("className"),$revisionDate);
|
||||||
|
return undef if ($asset->get('revisionDate') != $revisionDate);
|
||||||
|
|
||||||
|
$asset->purgeRevision;
|
||||||
if ($self->session->form->process("proceed") eq "manageRevisionsInTag") {
|
if ($self->session->form->process("proceed") eq "manageRevisionsInTag") {
|
||||||
$self->session->http->setRedirect($self->getUrl("op=manageRevisionsInTag"));
|
$self->session->http->setRedirect($self->getUrl("op=manageRevisionsInTag"));
|
||||||
return "";
|
return "";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue