TITLE: Creating a new institution with minimal info fails to save BUG SUMMARY: This bug has something to do with a larger piece of functionality (SAML login) This code basically creates an Institution when a user browses to the home page - multiple browses to home page = multiple Institution created with an alpha character amended to the short name.
When we do something like: $name = 'My new institution'; $institution = institution_generate_name($name); $newinstitution = new Institution(); $newinstitution->initialise($institution, $name); $newinstitution->commit(); It should create us a new institution - but instead we get an sql error complaining that the 'tags' column is not an integer ============================================== Commit hash: Environment tested: Master Browser tested: Chrome Theme used: Raw | Default raw | Ocean | Modern | Primary school PRECONDITIONS: ------------------------ 1) Add the following code to the index.php file found in the htdocs folder. a) Add the code just above the if user is logged in function (line 29) b) code to add is $name = 'My new institution'; $institution = institution_generate_name($name); $newinstitution = new Institution(); $newinstitution->initialise($institution, $name); $newinstitution->commit(); 2) Site admin user is Logged in to site TEST STEPS: ------------------------ 1) Browse to the home page 2) Refresh the home page 3) Browse to Admin menu > Institutions > Settings 4) Verify that an Institution named "My new institution" and a short name of "mynewinstitution" has been created ✔ 5) Verify that an Institution named "My new institution" and a short name of "mynewinstitutiona" has been created ✔ Catalyst QA ✔ NOTE: Remove the code from the index.php file - you don't want a million Institutions to be created -- 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/1828141 Title: Creating a new institution with minimal info fails to save Status in Mahara: New Bug description: When we do something like: $name = 'My new institution'; $institution = institution_generate_name($name); $newinstitution = new Institution(); $newinstitution->initialise($institution, $name); $newinstitution->commit(); It should create us a new institution - but instead we get an sql error complaining that the 'tags' column is not an integer To manage notifications about this bug go to: https://bugs.launchpad.net/mahara/+bug/1828141/+subscriptions _______________________________________________ Mailing list: https://launchpad.net/~mahara-contributors Post to : mahara-contributors@lists.launchpad.net Unsubscribe : https://launchpad.net/~mahara-contributors More help : https://help.launchpad.net/ListHelp