No institution and Fields Locked / Unlocked

Bug #547632 reported by Yaju Mahida
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
Fix Released
Medium
Richard Mansfield

Bug Description

Reference : http://mahara.org/interaction/forum/topic.php?id=733#post3632

We have two institutions. One is No Institution and other is ORG_NAME.

In both institutions the first name and last name are locked.

Now, if you unlock these fields in ORG_NAME institution than users in this institution should be able to change these fields in their profile. But they are not able to change these as fields are still locked for them even after unlocked in site administration.

Now, including above changes if you also unlock these fields in No Institution than users from the ORG_NAME institution are able to change these fields as they are unlocked for them.

Is it normal? Is it a bug or feature?

If it is a bug okay I can report it to tracker. Wink

If this is a feature than seems irrelevant. Laughing

Note : when these fields are unlocked in No Institutions and locked in ORG_NAME institution than users of ORG_NAME are not able to change these fields in profile. This is fair.

This bug was imported from eduforge.org, see:
https://eduforge.org/tracker/index.php?func=detail&aid=3322&group_id=176&atid=739

Revision history for this message
Dan Marsden (danmarsden) wrote :

I can confirm this.

looking at the function locked_profile_fields() in htdocs/artefact/internal/index.php

this line:
$lockinginstitutions[] = 'mahara';

means that the no institution or "mahara" institution is ALWAYS checked for all users - so anything locked in the noinstitution "institution" is forced for all institutions.

maybe the $lockinginstituions array should be checked to see if it's empty before adding 'mahara' as an institution to check for locking?

Revision history for this message
Nigel-catalyst (nigel-catalyst) wrote :

We had a discussion about this during the hackfest.

The main problem is that the 'no institution' settings are actually for the entire site. They should all be moved elsewhere.

In the meantime, it might make sense for them to behave as if No Institution was actually an institution.

Revision history for this message
François Marier (fmarier) wrote :

Let's disable the field locking/unlocking in an institution if these fields are locked at the site level (No institution).

Changed in mahara:
milestone: none → 1.3.0
assignee: nobody → Richard Mansfield (richard-mansfield)
Revision history for this message
Richard Mansfield (richard-mansfield) wrote :

Checkboxes disabled & note added to explain existing behaviour.

Changed in mahara:
status: Confirmed → Fix Committed
Changed in mahara:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.