Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
My module is showing 'undefined' in the operator list
#1
I'm creating a new module, that is related to both Assets and SalesOrders through UI 10 fields. When I want to setup a workflow for my module, that filters on the productname in assets, I see 'is', 'is not' and four times 'undefined' (see attached image). Also, the workflow is not working.


Attached Files Thumbnail(s)
   
Reply
#2
Review the javascript errors and correctly translate the include/js/nl_nl.lang.js, you are missing labels.
As usual send a PR with the updated translation
Joe
TSolucio
Reply
#3
Hm, I tried setting my system to English to find out what the values were supposed to be (so I would know where to look for), but still they remained 'undefined'. No JS console errors as well. I'm not 100% sure this is a language string issue, but if it is, I've no idea what to translate.

PHP Code:
<select id="save_condition_0_operation" class="operation"><option value="is">is</option><option value="is not">is not</option><option value="has changed to">undefined</option><option value="is empty">undefined</option><option value="is not empty">undefined</option><option value="exists">undefined</option></select

Is the HTML source, but exactly these labels work fine when selecting a different field to sort on.

In this case I'm checking the asset name of the asset I related through a UI 10 field. Apart from the 'undefined' stuff, the workflow that should select an option from a dropdown depending on the asset's product name is not working. It is however working when I select a different field from the asset (description for example).
Reply
#4
You are correct. I can reproduce this in my development install.
I'll have a look as soon as I can and get back to you
Joe
TSolucio
Reply
#5
Got it:

https://github.com/tsolucio/corebos/comm...24abb4c39a

I created a workflow and tested all the options, they are working correctly.

Thanks!
Joe
TSolucio
Reply
#6
Cool, thanks!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)