Error on log when you search content to reuse without select the structure
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...
Tested on 3.2.2 // Postgres // FF
I think it should default to "all" like the content search screen.
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.
PR https://github.com/dotCMS/core/pull/8004
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