LMS-52b Amendment is being shown/sorted as if it were a new clause/section amendment when it is a clause/page/line amendment
ID | Raised by | Affects version | Related Jira tickets | Status |
---|---|---|---|---|
LMS-52 | HoL | v11.4 | ? | OPEN |
Issue description
If you create an amendment as a new clause/section amendment (or new schedule amendment) and then edit the amendment so it amends an existing clause/section/schedule instead, then the amendment may continue to appear in the Amendment manager and to be sorted in amendment lists as if it were a new clause amendment.
This is a result of how Lawmaker parses amendments:
When the amendment is first created and saved, it is parsed and key information is stored in attributes to help Lawmaker sort it correctly. In particular, the clause number, page and line numbers are all stored. For new clause amendments, whether the clause is being inserted “before” or “after” is also stored.
When the amendment is edited so it is no longer a new clause amendment and saved, it is parsed again and the page and line information is updated. However, even though it no longer refers to inserting before or after the clause, the attribute that stores that information is not being updated.
Workaround
If an amendment appears in the Amendment Manager including “After” or “Before” in the location column when it isn’t a new clause/schedule amendment, you can manually edit the amendment information to remove the erroneous attribute.
On the Amendment Manager tab, open the amendment in an temporary list (Amendment Actions>Create temporary list)
In the editor, place your cursor in the amendment.
Click on the Amendment Information panel on the right
Delete the text “After” or “Before” that appears in the Location field (do not use space bar to delete the text as this will leave a whitespace)
Wait 5 seconds or so until the amendment is updated
Save the amendment.