Deletion of attachment list now works
parent
d58fa954b9
commit
069592cdbc
|
|
@ -476,7 +476,7 @@ public class RelatedInfoStep extends AbstractMvcAuthoringStep {
|
||||||
* @param sectionIdentifier
|
* @param sectionIdentifier
|
||||||
* @param documentPath
|
* @param documentPath
|
||||||
* @param listIdentifierParam The identifier of the list to remove.
|
* @param listIdentifierParam The identifier of the list to remove.
|
||||||
* @param confirm The value of the confirm parameter. Must
|
* @param confirmed The value of the confirm parameter. Must
|
||||||
* contain {@code true} (as string not as
|
* contain {@code true} (as string not as
|
||||||
* boolean), otherwise this method does nothing.
|
* boolean), otherwise this method does nothing.
|
||||||
*
|
*
|
||||||
|
|
@ -492,8 +492,8 @@ public class RelatedInfoStep extends AbstractMvcAuthoringStep {
|
||||||
final String documentPath,
|
final String documentPath,
|
||||||
@PathParam("attachmentListIdentifier")
|
@PathParam("attachmentListIdentifier")
|
||||||
final String listIdentifierParam,
|
final String listIdentifierParam,
|
||||||
@FormParam("confirm")
|
@FormParam("confirmed")
|
||||||
final String confirm
|
final String confirmed
|
||||||
) {
|
) {
|
||||||
try {
|
try {
|
||||||
init();
|
init();
|
||||||
|
|
@ -513,7 +513,7 @@ public class RelatedInfoStep extends AbstractMvcAuthoringStep {
|
||||||
return showAttachmentListNotFound(listIdentifierParam);
|
return showAttachmentListNotFound(listIdentifierParam);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ("true".equalsIgnoreCase(confirm)) {
|
if ("true".equalsIgnoreCase(confirmed)) {
|
||||||
listManager.removeAttachmentList(listResult.get());
|
listManager.removeAttachmentList(listResult.get());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -11,9 +11,16 @@
|
||||||
<ui:param name="title" value="#{CmsDefaultStepsMessageBundle['contentsection.documents.relatedinfo.link.details.title']}" />
|
<ui:param name="title" value="#{CmsDefaultStepsMessageBundle['contentsection.documents.relatedinfo.link.details.title']}" />
|
||||||
|
|
||||||
<ui:define name="authoringStep">
|
<ui:define name="authoringStep">
|
||||||
|
<div class="d-flex mb-3">
|
||||||
|
<a class="btn btn-secondary mr-3"
|
||||||
|
href="#{mvc.basePath}/#{ContentSectionModel.sectionName}/documents/#{CmsSelectedDocumentModel.itemPath}/@relatedinfo">
|
||||||
|
<bootstrap:svgIcon icon="arrow-left-circle" />
|
||||||
|
<span>#{CmsDefaultStepsMessageBundle['contentsection.documents.relatedinfo.link.back']}</span>
|
||||||
|
</a>
|
||||||
<h2>
|
<h2>
|
||||||
#{CmsDefaultStepsMessageBundle['relatedinfo.link.details.title']}
|
#{CmsDefaultStepsMessageBundle['relatedinfo.link.details.title']}
|
||||||
</h2>
|
</h2>
|
||||||
|
</div>
|
||||||
|
|
||||||
<libreccm:localizedStringEditor
|
<libreccm:localizedStringEditor
|
||||||
addButtonLabel="#{CmsDefaultStepsMessageBundle['contentsection.documents.relatedinfo.link.title.add.button_label']}"
|
addButtonLabel="#{CmsDefaultStepsMessageBundle['contentsection.documents.relatedinfo.link.title.add.button_label']}"
|
||||||
|
|
|
||||||
|
|
@ -228,3 +228,4 @@ relatedinfo.attachmentlists.remove.cancel=Cancel
|
||||||
relatedinfo.attachmentlists.remove.confirm=Remove
|
relatedinfo.attachmentlists.remove.confirm=Remove
|
||||||
relatedinfo.attachmentlists.remove.title=Confirm attachment list removal
|
relatedinfo.attachmentlists.remove.title=Confirm attachment list removal
|
||||||
relatedinfo.attachmentlists.remove.message=Are you sure to remove the attachmentlist {0} and all attachments in the list?
|
relatedinfo.attachmentlists.remove.message=Are you sure to remove the attachmentlist {0} and all attachments in the list?
|
||||||
|
contentsection.documents.relatedinfo.link.back=Back
|
||||||
|
|
|
||||||
|
|
@ -228,3 +228,4 @@ relatedinfo.attachmentlists.remove.cancel=Abbrechen
|
||||||
relatedinfo.attachmentlists.remove.confirm=Entfernen
|
relatedinfo.attachmentlists.remove.confirm=Entfernen
|
||||||
relatedinfo.attachmentlists.remove.title=Entfernen der Anhangliste best\u00e4tigen
|
relatedinfo.attachmentlists.remove.title=Entfernen der Anhangliste best\u00e4tigen
|
||||||
relatedinfo.attachmentlists.remove.message=Sind Sie sicher, dass die die Anhangliste {0} und alle Anh\u00e4nge in dieser Liste entfernen wollen?
|
relatedinfo.attachmentlists.remove.message=Sind Sie sicher, dass die die Anhangliste {0} und alle Anh\u00e4nge in dieser Liste entfernen wollen?
|
||||||
|
contentsection.documents.relatedinfo.link.back=Zur\u00fcck
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue