core icon indicating copy to clipboard operation
core copied to clipboard

Error on log when you search content to reuse without select the structure

Open bryanboza opened this issue 11 years ago • 4 comments

Now we have the option to reuse content from multiples structures, but if you try to search by any content in the reuse window, without select the structure we are having the follow error in the log: ERROR ajax.ContentletAjax: An invalid structure inode = "" was passed

Maybe we need a validation here to indicate we need select any content type before make any search... 2015-06-26_1528 Tested on 3.2.2 // Postgres // FF

bryanboza avatar Jun 26 '15 21:06 bryanboza

I think it should default to "all" like the content search screen.

wezell avatar Jun 29 '15 12:06 wezell

In order to enable "ALL" option in this window we need to do some refactor in the code because when the user selects "ALL" we need to show ONLY those "content types" allowed by the container and not just ALL the "content types" of the system. Maybe we can do this as an enhancement in a different ticket.

The fix will be select the first "Content Type" that is in the combo and make the field required.

rogelio-blanco avatar Jul 07 '15 19:07 rogelio-blanco

PR https://github.com/dotCMS/core/pull/8004

rogelio-blanco avatar Jul 07 '15 19:07 rogelio-blanco

Fix is working. The combo box selects the first "Content Type" in the list Tested on: dotcms 3.3 build Win7 Pro SP1 SQLServer 2012 Firefox

shaydotcms avatar Aug 20 '15 14:08 shaydotcms