[
https://issues.apache.org/jira/browse/OFBIZ-10012?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16270528#comment-16270528 ]
Jacques Le Roux commented on OFBIZ-10012:
-----------------------------------------
Michael,
You said
bq. It should be detected during testing when a lookup button does not show up where it should be and the console.log gives a hint to the developer what is missing. We should avoid bringing up developer messages to the user.
Of course the user was not supposed to see this message. The dev was supposed to have seen and fixed this issue before (or at very least the QA team if exists, though at this point it already shows a bad dev's behaviour). Anyway I agree that another method would be better.
I was thinking about console.error() and not showing the lookup. I don't think it's enough. Because since I have put the CSP w/o report policy in place the console is full of CSP warnings and it's hard to spot even an error. Also hidding the lookup is not the best solution because the dev could still miss it (again bad dev's behaviour, but who is not making mistakes?).
So I propose to not only shows the error message in browser console but also to show the same message, instead of the lookup, using the DOM, instead of simply hidding the lookup. I belive a message like
bq. ******* Developer: for lookups to work you must provide a form name! *******
has more chance to be seen in both place ( ******* for more attention)
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)