Skip to content

Commit

Permalink
WebSubmit: add missing gettext_set_language import
Browse files Browse the repository at this point in the history
  • Loading branch information
kaplun authored and tiborsimko committed Jun 30, 2011
1 parent c58021c commit 8846ca8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/websubmit/lib/websubmitadmin_engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
from invenio.access_control_engine import acc_authorize_action
from invenio.errorlib import register_exception
from invenio.websubmitadmin_config import InvenioWebSubmitWarning
from invenio.messages import gettext_set_language

import invenio.template

Expand Down Expand Up @@ -3894,7 +3895,7 @@ def _configure_doctype_move_field_on_submissionpage(doctype, action, pagenum, mo
_ = gettext_set_language(CFG_SITE_LANG)
movefield_res = move_field_on_submissionpage_from_positionx_to_positiony(doctype=doctype, action=action, pagenum=pagenum,
movefieldfrom=movefieldfromposn, movefieldto=movefieldtoposn)

if movefield_res == 1:
## invalid field numbers
try:
Expand Down

0 comments on commit 8846ca8

Please sign in to comment.