Allow institution short name to be a string containing numbers and allow the string to be minimum 1 char long

Bug #1855344 reported by Robert Lyon
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
Fix Released
Wishlist
Robert Lyon

Bug Description

When dealing with external IdPs they can send through the value for institution as being an id number, eg '5' rather than a short alpha string, eg 'cats'

We should be able to handle this on the Mahara side and treat the numeric string like it is just another text string.

Currently when you try to make an institution with name = '5' it sets the short name to 'inst' and not '5'

Robert Lyon (robertl-9)
description: updated
Revision history for this message
Mahara Bot (dev-mahara) wrote : A patch has been submitted for review

Patch for "master" branch: https://reviews.mahara.org/10644

Revision history for this message
Mahara Bot (dev-mahara) wrote : A change has been merged

Reviewed: https://reviews.mahara.org/10644
Committed: https://git.mahara.org/mahara/mahara/commit/612e261a71116f33b3d246b7c61cc9255e13dd62
Submitter: Robert Lyon (<email address hidden>)
Branch: master

commit 612e261a71116f33b3d246b7c61cc9255e13dd62
Author: Robert Lyon <email address hidden>
Date: Fri Dec 6 11:19:02 2019 +1300

Bug 1855344: Allow institution shortname to contain numbers

And allow it to be min 1 character in length

behatnotneeded

Change-Id: I7dbea5929f47a42865377da2260e30f037802a73
Signed-off-by: Robert Lyon <email address hidden>

Robert Lyon (robertl-9)
Changed in mahara:
status: In Progress → Fix Committed
tags: added: nominatedfeature
summary: - Allow institution short name to be a string containing numbers and alow
+ Allow institution short name to be a string containing numbers and allow
the string to be minimum 1 char long
Robert Lyon (robertl-9)
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.