Closed kvdmolen closed 9 years ago
I am able to reproduce this. http://178.62.254.91/lf/initiative/new.html?issue_id=4
This is related to #27. The preview is trying to html encode issue name, but there is no issue name in the form if the initiative is being added to an existing issue, rather than creating one inline.
This bug is fixed now.
This bug got back :( different error now I think..
...idVoting/frontend/app/main/initiative/_action/create.lua:74: attempt to get length of local 'issue_name' (a nil value)
Stack trace follows:
...idVoting/frontend/app/main/initiative/_action/create.lua:74: in function 'func'
../env/execute/file_path.lua:24: in function 'file_path'
../env/execute/action.lua:19: in function 'action'
../env/execute/filtered_action.lua:35: in function <../env/execute/filtered_action.lua:34>
(...tail calls...)
../env/execute/multi_wrapped.lua:18: in function 'inner_func'
../env/execute/inner.lua:19: in function 'inner'
/opt/LiquidVoting/frontend/app/main/_filter/21_auth.lua:129: in function 'func'
../env/execute/file_path.lua:24: in function 'file_path'
../env/execute/_add_filters_by_path.lua:17: in function 'wrapper_func'
...
...ting/frontend/app/main/_filter_action/10_transaction.lua:3: in function 'func'
../env/execute/file_path.lua:24: in function 'file_path'
../env/execute/_add_filters_by_path.lua:17: in function 'wrapper_func'
../env/execute/wrapped.lua:21: in function <../env/execute/wrapped.lua:11>
(...tail calls...)
../env/execute/filtered_action.lua:32: in function 'filtered_action'
webmcp.lua:313: in function <webmcp.lua:257>
[C]: in function 'xpcall'
webmcp.lua:256: in main chunk
[C]: in function 'pcall'
/opt/webmcp/cgi-bin/webmcp-wrapper.lua:7: in main chunk
[C]: in ?
This should be fixed. Error was related to handling form processing for new issue vs. new issue + new initiative. Both should work now.
Adding new initiative to existing issue, cannot be saved, gives error when click "preview":
http://178.62.254.91/lf/initiative/new.html?issue_id=17