[Erp5-report] r19509 - /experimental/Experimental/patches/ERP5Form_ListField_with_jump.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Tue Feb 26 14:16:03 CET 2008
Author: bartek
Date: Tue Feb 26 14:16:03 2008
New Revision: 19509
URL: http://svn.erp5.org?rev=19509&view=rev
Log:
handle exception which occurs in editable field in listbox because request is empty there
Modified:
experimental/Experimental/patches/ERP5Form_ListField_with_jump.py
Modified: experimental/Experimental/patches/ERP5Form_ListField_with_jump.py
URL: http://svn.erp5.org/experimental/Experimental/patches/ERP5Form_ListField_with_jump.py?rev=19509&r1=19508&r2=19509&view=diff
==============================================================================
--- experimental/Experimental/patches/ERP5Form_ListField_with_jump.py (original)
+++ experimental/Experimental/patches/ERP5Form_ListField_with_jump.py Tue Feb 26 14:16:03 2008
@@ -60,7 +60,10 @@
Render link to the base category (for those who can add something there)
"""
html_string = ''
- here = REQUEST['here']
+ try:
+ here = REQUEST['here']
+ except KeyError: # we are in listbox and we don't want jump from here
+ return ''
# see if jump is allowed
allow_jump = field.get_value('allow_jump')
if not allow_jump:
More information about the Erp5-report
mailing list