mahara-contributors team mailing list archive
-
mahara-contributors team
-
Mailing list archive
-
Message #46835
[Bug 1747795] Re: Importing leap2A file does not respect the locked fields rules
I ran the following Behat test manually
Environment tested: Master
Browser tested: Chrome
===================
Behat Test Script
===================
@javascript @core @core_institution @core_artefact
Feature: Leap2a import locks
As an Institution admin
I want to lock fields
So that institution fields will not change when users upload Leap2a portfolios
Background:
Given the following "institutions" exist:
| name | displayname | registerallowed | registerconfirm |
| InstA | Institution A | ON | OFF |
And the following "FionaFang.xml" file exist
And the following "institution_locked_profile_field" exist
| name | locked |
| firstname | on |
| student ID | on |
And the following "users" exist:
| username | password | email | firstname | lastname | institution | authname | role |
| UserA | Kupuhipa1 | UserA@xxxxxxxxxxx | Angela | User | Institution A | internal | member |
Scenario: user imports Leap2a file but some fields are locked
Given I log in as "UserA" with password "Kupuhipa1"
And I am on "/import/index.php"
When I attach the file "UserA.xml" to "Upload Leap2A file"
And I click on "Import"
Then I should see "Choose the way to import your portfolio items"
When I expand "About me" node
Then I should see "Ignore" in the block "First name"
And I should see "Ignore" in the block "student ID"
And I should see "Ignore" in the block "Last name"
And I should see "Replace" in the block "Last name"
And I should see "Append" in the block "Last name"
And I should see "Ignore" in the block "Display name"
And I should see "Replace" in the block "Display name"
And I should see "Append" in the block "Display name"
Catalyst QA Approved ✔
--
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1747795
Title:
Importing leap2A file does not respect the locked fields rules
Status in Mahara:
In Progress
Bug description:
In the institution settings we can lock profile fields, eg firstname,
lastname so that a user can't change the values of them.
However, if we upload a Leap2A file with profile details in them that
are different to the current ones we can save the new info to our
profile - ignoring the 'lock' on the fields
The import should respect the lock
To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1747795/+subscriptions
References