Skip to content
This repository was archived by the owner on Apr 22, 2025. It is now read-only.

Commit 7f2d243

Browse files
committed
* The new file module (improved from the MyCollab 6.0.0)
* Verify email status before sending email * Show error message when user edit ticket which has unset duration value * Can not display the right date value in project notification * Some long text don't display in the box * Prepare for the new MyCollab 7.0.1
1 parent ec51d28 commit 7f2d243

File tree

165 files changed

+3148
-1587
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

165 files changed

+3148
-1587
lines changed

mycollab-app-community/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<parent>
88
<groupId>com.mycollab</groupId>
99
<artifactId>mycollab-parent-community</artifactId>
10-
<version>7.0.0</version>
10+
<version>7.0.1</version>
1111
<relativePath>../mycollab-parent-community/pom.xml</relativePath>
1212
</parent>
1313
<packaging>jar</packaging>

mycollab-app-community/src/main/resources/banner.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@
55
|| \/ || )/ (( (( )) || || ||=|| ||=) (( (( )) || \/ || || \/ || || || ||\\|| || || )/
66
|| || // \\__ \\_// ||__| ||__| || || ||_)) \\__ \\_// || || || || \\_// || \|| || || //
77

8-
Version 7.0.0
8+
Version 7.0.1
99
===================================================================================================================

mycollab-caching/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<parent>
88
<groupId>com.mycollab</groupId>
99
<artifactId>mycollab-parent-community</artifactId>
10-
<version>7.0.0</version>
10+
<version>7.0.1</version>
1111
<relativePath>../mycollab-parent-community/pom.xml</relativePath>
1212
</parent>
1313
<packaging>jar</packaging>

mycollab-config/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<parent>
88
<groupId>com.mycollab</groupId>
99
<artifactId>mycollab-parent-community</artifactId>
10-
<version>7.0.0</version>
10+
<version>7.0.1</version>
1111
<relativePath>../mycollab-parent-community/pom.xml</relativePath>
1212
</parent>
1313
<packaging>jar</packaging>

mycollab-config/src/main/java/com/mycollab/configuration/ApplicationConfiguration.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ class ApplicationConfiguration(var siteName: String = "MyCollab", var descriptio
3131
var notifyEmail: String = "noreply@mycollab.com") {
3232

3333
fun defaultUrls() =
34-
mutableMapOf("facebook_url" to (facebookUrl ?: ""),
35-
"google_url" to (googleUrl ?: ""),
36-
"linkedin_url" to (linkedinUrl ?: ""),
37-
"twitter_url" to (twitterUrl ?: ""))
34+
mutableMapOf("facebook_url" to facebookUrl,
35+
"google_url" to googleUrl,
36+
"linkedin_url" to linkedinUrl,
37+
"twitter_url" to twitterUrl)
3838
}

mycollab-config/src/main/java/com/mycollab/logging/LogFilter.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ import ch.qos.logback.core.spi.FilterReply
2727
class LogFilter : Filter<ILoggingEvent>() {
2828

2929
override fun decide(event: ILoggingEvent): FilterReply =
30-
if (event.message.contains("Failed to execute SQL (stacktrace on DEBUG log level)")) {
30+
if (event.message.contains("Failed to execute SQL (stacktrace on DEBUG log level)")
31+
|| event.message.contains("ERROR o.j.p.CENTRAL_LOCK")) {
3132
FilterReply.DENY
3233
} else {
3334
FilterReply.NEUTRAL

mycollab-config/src/main/java/com/mycollab/logging/MailAppender.kt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class MailAppender : SMTPAppender() {
4747
}
4848

4949
override fun sendBuffer(cb: CyclicBuffer<ILoggingEvent>?, lastEventObject: ILoggingEvent?) {
50-
// if (!isSessionCreated) {
50+
if (!isSessionCreated) {
5151
try {
5252
val emailConfiguration = AppContextUtil.getSpringBean(EmailConfiguration::class.java)
5353
val props = Properties(OptionHelper.getSystemProperties())
@@ -90,8 +90,7 @@ class MailAppender : SMTPAppender() {
9090
} catch (e: Exception) {
9191
addError("Error to get email configuration")
9292
}
93-
94-
// }
93+
}
9594
super.sendBuffer(cb, lastEventObject)
9695
}
9796
}

mycollab-core/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<parent>
88
<groupId>com.mycollab</groupId>
99
<artifactId>mycollab-parent-community</artifactId>
10-
<version>7.0.0</version>
10+
<version>7.0.1</version>
1111
<relativePath>../mycollab-parent-community/pom.xml</relativePath>
1212
</parent>
1313
<packaging>jar</packaging>
@@ -78,7 +78,7 @@
7878
<dependency>
7979
<groupId>uk.com.robust-it</groupId>
8080
<artifactId>cloning</artifactId>
81-
<version>1.9.11</version>
81+
<version>1.9.12</version>
8282
</dependency>
8383
</dependencies>
8484
</project>

mycollab-core/src/main/java/com/mycollab/core/Version.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,14 @@
2525
* @since 4.4.0
2626
*/
2727
public class Version {
28-
public static final String THEME_VERSION = "mycollab_20181214";
29-
public static final String THEME_MOBILE_VERSION = "mycollab_20161111";
28+
public static final String THEME_VERSION = "mycollab_20190223";
3029

3130
public static String getVersion() {
32-
return "7.0.0";
31+
return "7.0.1";
3332
}
3433

3534
public static LocalDate getReleasedDate() {
36-
return LocalDate.of(2017, 5, 25);
35+
return LocalDate.of(2019, 2, 22);
3736
}
3837

3938
static int[] getVersionNumbers(String ver) {

mycollab-core/src/main/java/com/mycollab/core/utils/DateTimeUtils.java

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,16 @@ public static LocalDate convertDateByString(String strDate, String format) {
5353
}
5454
}
5555

56-
public static String convertToStringWithUserTimeZone(String dateVal, String dateFormat, Locale locale, ZoneId userTimeZone) {
56+
public static String convertDateToStringWithUserTimeZone(String dateVal, String dateFormat, Locale locale, ZoneId userTimeZone) {
57+
LocalDate date = parseDate(dateVal);
58+
if (date != null) {
59+
return formatDate(date, dateFormat, locale, userTimeZone);
60+
} else return "";
61+
}
62+
63+
public static String convertDateTimeToStringWithUserTimeZone(String dateVal, String datetimeFormat, Locale locale, ZoneId userTimeZone) {
5764
LocalDateTime date = parseDateTimeWithMilisByW3C(dateVal);
58-
return convertToStringWithUserTimeZone(date, dateFormat, locale, userTimeZone);
65+
return convertDateTimeToStringWithUserTimeZone(date, datetimeFormat, locale, userTimeZone);
5966
}
6067

6168
/**
@@ -95,7 +102,7 @@ public static String formatDateToW3C(LocalDate date) {
95102
return "";
96103
}
97104

98-
public static String convertToStringWithUserTimeZone(LocalDateTime date, String dateFormat, Locale locale, ZoneId userTimeZone) {
105+
public static String convertDateTimeToStringWithUserTimeZone(LocalDateTime date, String dateFormat, Locale locale, ZoneId userTimeZone) {
99106
if (date == null)
100107
return "";
101108
return formatDate(date, dateFormat, locale, userTimeZone);

0 commit comments

Comments
 (0)