Skip to content

Commit

Permalink
Merge pull request moodlehq#4251 from crazyserver/MOBILE-4712
Browse files Browse the repository at this point in the history
MOBILE-4712 enrol: Remove "No enrolment key required" string
  • Loading branch information
dpalou authored Dec 3, 2024
2 parents 9dd6d8f + 9272e4b commit 53baee7
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/acceptance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ jobs:
services:

postgres:
image: postgres:13
image: postgres:14
env:
POSTGRES_USER: 'postgres'
POSTGRES_HOST_AUTH_METHOD: 'trust'
Expand All @@ -125,7 +125,7 @@ jobs:

- uses: shivammathur/setup-php@v2
with:
php-version: 8.1
php-version: 8.2
ini-values: max_input_vars=5000
coverage: none

Expand Down
1 change: 0 additions & 1 deletion scripts/langindex.json
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,6 @@
"addon.enrol_guest.passwordinvalid": "enrol_guest",
"addon.enrol_self.confirmselfenrol": "local_moodlemobileapp",
"addon.enrol_self.errorselfenrol": "local_moodlemobileapp",
"addon.enrol_self.nopassword": "enrol_self",
"addon.enrol_self.password": "enrol_self",
"addon.enrol_self.pluginname": "enrol_self",
"addon.messageoutput_airnotifier.processorsettingsdesc": "local_moodlemobileapp",
Expand Down
1 change: 0 additions & 1 deletion src/addons/enrol/self/lang.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"confirmselfenrol": "Are you sure you want to enrol yourself in this course?",
"errorselfenrol": "An error occurred while self enrolling.",
"nopassword": "No enrolment key required.",
"password": "Enrolment key",
"pluginname": "Self enrolment"
}
4 changes: 2 additions & 2 deletions src/addons/enrol/self/services/enrol-handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,9 @@ export class AddonEnrolSelfHandlerService implements CoreEnrolSelfHandler {
if (!info.enrolpassword) {
try {
await CoreDomUtils.showConfirm(
Translate.instant('addon.enrol_self.confirmselfenrol') + '<br>' +
Translate.instant('addon.enrol_self.nopassword'),
Translate.instant('addon.enrol_self.confirmselfenrol'),
method.name,
Translate.instant('core.courses.enrolme'),
);
} catch {
// User cancelled.
Expand Down
2 changes: 1 addition & 1 deletion src/core/features/course/tests/behat/basic_usage.feature
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ Feature: Test basic usage of one course in app
And I press "Available courses" in the app
And I press "Course 1" in the app
And I press "Enrol me" in the app
And I press "OK" in the app
And I press "Enrol me" in the app
And I wait loading to finish in the app
Then the header should be "Course 1" in the app
And I should find "Test forum name" in the app
Expand Down

0 comments on commit 53baee7

Please sign in to comment.