← Back to team overview

mahara-contributors team mailing list archive

[Bug 1839223] Re: When creating a page via tags, the copied blocks have the wrong text for the tags

 

Launchpad/Bug: https://bugs.launchpad.net/mahara/+bug/1839223
Gerrit/Patchset: https://reviews.mahara.org/#/c/10325/
Mahara Environment: my Ubuntu VM 
Browser tested: Firefox & Chrome
Theme used: Default

**TEST SCENARIO: Verify that when creating a page via tags, the copied blocks have the correct text for both institution and user tags
(please see attached pre-fix defect screenshots prefixed with SS1-1 and SS1-2).
--------------   

**PRECONDITIONS:
---------------
1) An institution 'Institution one' exists with an institution tag named 'copy' i.e. "Institution one: copy"
2) User1 is a member of the above institute and has previously tagged:
   2a) some page blocks with the user tag "fruit" (2 items - see screenshot prefixed with SS2)
   2b) some page blocks with the "Institution one: copy" tag (2 items - see screenshot prefixed with SS2)
   2c) at least one page block with BOTH the institute and the user tags (1 item - see screenshot prefixed with SS2)
 
**TEST STEPS:
-------------
a) Regression test user tag
Step 1) Logged in user1 selects to create a new page --> the new page screen is displayed
Step 2) User1 sets the field "Create via tags" to "fruit" then user saves the page and views it
Expected result 2: the page is displayed with the tag "fruit" and the correct items are present
Actual result2: as expected (see attachment prefixed with SS3) ✓

b) Test fix of Institution tag
Step 3) User1 selects to create a new page --> the new page screen is displayed
Step 4) User1 sets the field "Create via tags" to "Institution one: copy" then user saves the page and views it
Expected result 4: the page is displayed with the tag "Institution one: copy" and the correct items are present
Actual result4: as expected (see attachment prefixed with SS4) ✓
Note: other user tags are also displayed as they were included with the institution tag on one of the blocks.

c) Regression test combined tag use
Step 5) User1 selects to create a new page --> the new page screen is displayed
Step 6) User1 sets the field "Create via tags" to contain both "Institution one: copy" & "fruit" then user saves the page and views it
Expected result 6: the page is displayed with both tags "Institution one: copy" and the correct items are present
Actual result6: as expected (see attachment prefixed with SS5) ✓

** Attachment added: "Postfix SS5 - new page created with block with both tags displays tag names correctly.png"
   https://bugs.launchpad.net/mahara/+bug/1839223/+attachment/5289335/+files/Postfix%20SS5%20-%20new%20page%20created%20with%20block%20with%20both%20tags%20displays%20tag%20names%20correctly.png

-- 
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/1839223

Title:
  When creating a page via tags, the copied blocks have the wrong text
  for the tags

Status in Mahara:
  In Progress

Bug description:
  to test on master
  - have an institution with institution tags enabled and create the institution tag "copy"
  - login as a member of the institution
  - create a page with a block and set the tag to the institution tag "copy", e.g. "Institution 1: copy" 
  - create another page and set the field "Create via tags" to "Institution 1: copy"
  - save the view and check the block was copied to the new page
  - click on the configure block button

  expected result: the block has a tag "Institution 1: copy"
  actual result: the block has a number as a tag that corresponds to the id of the tag on the db

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1839223/+subscriptions


References