Skip to content

Commit 17d33df

Browse files
Merge branch 'SilverYoCha-feature-9331'
2 parents 73695d3 + 9b59fde commit 17d33df

File tree

4 files changed

+12
-2
lines changed

4 files changed

+12
-2
lines changed

gallery/gallery-library/src/main/java/org/silverpeas/components/gallery/process/media/GalleryDeleteMediaDataProcess.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,9 @@ private void removeXMLContentOfMedia(final String mediaId,
103103

104104
final RecordSet set = pubTemplate.getRecordSet();
105105
final DataRecord data = set.getRecord(mediaId);
106-
set.delete(data.getId());
106+
if (data != null) {
107+
set.delete(data.getId());
108+
}
107109
}
108110
} catch (final PublicationTemplateException | FormException e) {
109111
throw new GalleryRuntimeException(e);

infoLetter/infoLetter-war/src/main/webapp/wysiwyg/jsp/ckeditor/infoLetterConfig.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ CKEDITOR.editorConfig = function( config )
1414
config.filebrowserImageBrowseUrl = config.baseHref+'uploadFile.jsp';
1515
config.filebrowserFlashBrowseUrl = config.baseHref+'uploadFile.jsp';
1616
config.filebrowserBrowseUrl = config.baseHref+'uploadFile.jsp';
17+
config.imageUploadUrl = 'activated';
1718
config.extraPlugins = 'userzoom,identitycard,allmedias,autolink,video,html5audio,imageresizerowandcolumn,variables,listblock,floatpanel,richcombo,mediaofcontribution,imagebank,filebank';
1819
config.allowedContent = true;
1920
config.toolbarCanCollapse = true;

kmelia/kmelia-war/src/main/java/org/silverpeas/components/kmelia/control/KmeliaSessionController.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3786,7 +3786,13 @@ public void saveXMLFormToPublication(PublicationDetail pubDetail, List<FileItem>
37863786
context.setNodeId(getCurrentFolderId());
37873787
}
37883788
context.setObjectId(pubId);
3789-
context.setContentLanguage(getContentLanguage());
3789+
if (forceUpdatePublication) {
3790+
// case of a modification of the publication
3791+
context.setContentLanguage(getContentLanguage());
3792+
} else {
3793+
// the publication is just created
3794+
context.setContentLanguage(pubDetail.getLanguage());
3795+
}
37903796

37913797
form.update(items, data, context);
37923798
set.save(data);

kmelia/kmelia-war/src/main/webapp/kmelia/jsp/publicationManager.jsp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,7 @@
262262
<view:looknfeel withFieldsetStyle="true" withCheckFormScript="true"/>
263263
<view:includePlugin name="datepicker"/>
264264
<view:includePlugin name="popup"/>
265+
<view:includePlugin name="wysiwyg"/>
265266
<script type="text/javascript" src="<%=m_context%>/util/javaScript/i18n.js"></script>
266267

267268
<% if (extraForm != null) { %>

0 commit comments

Comments
 (0)