Page 1 of 1

[fixed]Admin Search can give false positives

Posted: Sun Mar 19, 2017 10:29 am
by deactivated010521
Old contentblocks are not removed when changing content type or switching template.


- create a template with 2 content blocks (Layout > Design Manager):

Code: Select all

	{content label="first"}
	{content block="second" label="second"}

- add content (Content > Content Manager):

Code: Select all

	firstblock
	secondblock
- search on added content (Extensions > Admin Search):

Search Text: firstblock || secondblock

- change content typ to redirect link (Layout > Design Manager [Content Type: Redirect Link]):


- search again (Extensions > Admin Search):

Search Text:

Code: Select all

firstblock || secondblock

Content of first and second content block still appear. Same when you change to a template with one content block. The content of the secondblock still shows up.

Re: Admin Search can give false positives

Posted: Sun Mar 19, 2017 2:19 pm
by calguy1000
I can alleviate this somewhat... but not all together.

Content properties are not cleared from the database when you change content type. or change template... and therefore they still will show up in search results. And some would argue that they should.

However, I will fix it so that it won't show up in search results when you change the content type to something like a link.

Re: [fixed]Admin Search can give false positives

Posted: Sun Mar 19, 2017 5:15 pm
by Rolf
Fixed in SVN rev: 11184

Re: [fixed]Admin Search can give false positives

Posted: Sun Mar 19, 2017 6:39 pm
by deactivated010521
Looks good tested with Redirect Link and Internal Page Link, tnx.