Skip to content
Snippets Groups Projects
Commit 2e5e6704 authored by srosse's avatar srosse
Browse files

Merge OpenOLAT default braanch to OpenOLAT aabsence with 5e8bc18129a7cafbf9fbb87837a8e5876f98efac

parents 654bdcaf 6d5627be
No related branches found
No related tags found
No related merge requests found
...@@ -452,7 +452,7 @@ public class CourseRuntimeController extends RepositoryEntryRuntimeController im ...@@ -452,7 +452,7 @@ public class CourseRuntimeController extends RepositoryEntryRuntimeController im
tools.setI18nKey("header.tools"); tools.setI18nKey("header.tools");
tools.setElementCssClass("o_sel_course_tools"); tools.setElementCssClass("o_sel_course_tools");
if (reSecurity.isEntryAdmin() || hasCourseRight(CourseRights.RIGHT_COURSEEDITOR)) { if (uce != null && (reSecurity.isEntryAdmin() || hasCourseRight(CourseRights.RIGHT_COURSEEDITOR))) {
boolean managed = RepositoryEntryManagedFlag.isManaged(getRepositoryEntry(), RepositoryEntryManagedFlag.editcontent); boolean managed = RepositoryEntryManagedFlag.isManaged(getRepositoryEntry(), RepositoryEntryManagedFlag.editcontent);
boolean readOnly = uce.isCourseReadOnly(); boolean readOnly = uce.isCourseReadOnly();
editLink = LinkFactory.createToolLink("edit.cmd", translate("command.openeditor"), this, "o_icon_courseeditor"); editLink = LinkFactory.createToolLink("edit.cmd", translate("command.openeditor"), this, "o_icon_courseeditor");
......
...@@ -364,7 +364,11 @@ public class FeedFileStorge { ...@@ -364,7 +364,11 @@ public class FeedFileStorge {
if (itemContainer != null) { if (itemContainer != null) {
VFSLeaf leaf = (VFSLeaf) itemContainer.resolve(ITEM_FILE_NAME); VFSLeaf leaf = (VFSLeaf) itemContainer.resolve(ITEM_FILE_NAME);
if (leaf != null) { if (leaf != null) {
item = (ItemImpl) XStreamHelper.readObject(xstream, leaf.getInputStream()); try {
item = (ItemImpl) XStreamHelper.readObject(xstream, leaf.getInputStream());
} catch (Exception e) {
log.error("Item XML-File could not be read. Item container: " + leaf);
}
} else { } else {
log.error("Item XML-File could not be found on file system." log.error("Item XML-File could not be found on file system."
+ " Item container: " + itemContainer.getName()); + " Item container: " + itemContainer.getName());
......
...@@ -69,7 +69,7 @@ public abstract class FeedNotificationsHandler implements NotificationsHandler { ...@@ -69,7 +69,7 @@ public abstract class FeedNotificationsHandler implements NotificationsHandler {
@Override @Override
public SubscriptionInfo createSubscriptionInfo(Subscriber subscriber, Locale locale, Date compareDate) { public SubscriptionInfo createSubscriptionInfo(Subscriber subscriber, Locale locale, Date compareDate) {
SubscriptionInfo si = null; SubscriptionInfo si;
Publisher p = subscriber.getPublisher(); Publisher p = subscriber.getPublisher();
Date latestNews = p.getLatestNewsDate(); Date latestNews = p.getLatestNewsDate();
...@@ -104,7 +104,10 @@ public abstract class FeedNotificationsHandler implements NotificationsHandler { ...@@ -104,7 +104,10 @@ public abstract class FeedNotificationsHandler implements NotificationsHandler {
} }
} }
si = new SubscriptionInfo(subscriber.getKey(), p.getType(), new TitleItem(title, getCssClassIcon()), items); si = new SubscriptionInfo(subscriber.getKey(), p.getType(), new TitleItem(title, getCssClassIcon()), items);
} } else {
//no news
si = notificationsManager.getNoSubscriptionInfo();
}
} catch (Exception e) { } catch (Exception e) {
log.error("Unknown Exception", e); log.error("Unknown Exception", e);
si = notificationsManager.getNoSubscriptionInfo(); si = notificationsManager.getNoSubscriptionInfo();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment