Skip to content

Commit b49aa35

Browse files
Merge pull request #3512 from dpalou/MOBILE-4081
MOBILE-4081 database: Fix entry.id is undefined after change group
2 parents 8983ecd + 38c4398 commit b49aa35

File tree

7 files changed

+14
-8
lines changed

7 files changed

+14
-8
lines changed

config.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version='1.0' encoding='utf-8'?>
2-
<widget android-versionCode="41000" id="com.moodle.moodlemobile" ios-CFBundleVersion="4.1.0.0" version="4.1.0-dev" versionCode="41000" xmlns="http://www.w3.org/ns/widgets" xmlns:android="http://schemas.android.com/apk/res/android" xmlns:cdv="http://cordova.apache.org/ns/1.0">
2+
<widget android-versionCode="41001" id="com.moodle.moodlemobile" ios-CFBundleVersion="4.1.0.1" version="4.1.0" versionCode="41001" xmlns="http://www.w3.org/ns/widgets" xmlns:android="http://schemas.android.com/apk/res/android" xmlns:cdv="http://cordova.apache.org/ns/1.0">
33
<name>Moodle</name>
44
<description>Moodle official app</description>
55
<author email="[email protected]" href="http://moodle.com">Moodle Mobile team</author>
@@ -27,7 +27,7 @@
2727
<preference name="UIWebViewBounce" value="false" />
2828
<preference name="DisallowOverscroll" value="true" />
2929
<preference name="prerendered-icon" value="true" />
30-
<preference name="AppendUserAgent" value="MoodleMobile 4.1.0-dev (41000)" />
30+
<preference name="AppendUserAgent" value="MoodleMobile 4.1.0 (41001)" />
3131
<preference name="BackupWebStorage" value="none" />
3232
<preference name="ScrollEnabled" value="false" />
3333
<preference name="KeyboardDisplayRequiresUserAction" value="false" />

moodle.config.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"app_id": "com.moodle.moodlemobile",
33
"appname": "Moodle Mobile",
4-
"versioncode": 41000,
5-
"versionname": "4.1.0-dev",
4+
"versioncode": 41001,
5+
"versionname": "4.1.0",
66
"cache_update_frequency_usually": 420000,
77
"cache_update_frequency_often": 1200000,
88
"cache_update_frequency_sometimes": 3600000,

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "moodlemobile",
3-
"version": "4.1.0-dev",
3+
"version": "4.1.0",
44
"description": "The official app for Moodle.",
55
"author": {
66
"name": "Moodle Pty Ltd.",

src/addons/mod/data/pages/entry/entry.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -352,6 +352,7 @@ export class AddonModDataEntryPage implements OnInit, OnDestroy {
352352
if (this.offset === undefined) {
353353
// No offset passed, display the first entry.
354354
pageIndex = 0;
355+
this.offset = 0;
355356
} else if (this.offset > 0) {
356357
// Online entry.
357358
pageIndex = this.offset % perPage + (entries.offlineEntries?.length || 0);

src/addons/mod/forum/tests/behat/basic_usage.feature

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,4 +329,9 @@ Feature: Test basic usage of forum activity in app
329329
When I press the back button in the app
330330
And I press "Sort by last post creation date in descending order" in the app
331331
And I press "Sort by last post creation date in ascending order" in the app
332-
Then I should find "There was a problem connecting to the site. Please check your connection and try again." in the app
332+
Then I should find "Forum not available in this sorting order" in the app
333+
334+
When I press the back button in the app
335+
And I press "Test forum name" in the app
336+
Then I should find "Forum not available in this sorting order" in the app
337+
And I should find "Sort by last post creation date in ascending order" in the app

src/addons/mod/forum/tests/behat/groups.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,4 +366,4 @@ Feature: Test usage of forum activity with groups in app
366366

367367
When I press "Visible groups" in the app
368368
And I press "Group 1" in the app
369-
Then I should find "There was a problem connecting to the site. Please check your connection and try again." in the app
369+
Then I should find "Forum not available in this sorting order" in the app

0 commit comments

Comments
 (0)