Skip to content

Commit

Permalink
BibFormat: cast recID type in edit record element
Browse files Browse the repository at this point in the history
* FIX Casts record ID type to integer in record editor formatting
  element. Various functions working with the record ID expect it
  to be an integer rather than a string. (PR inveniosoftware#2796)

Signed-off-by: Ludmila Marian <[email protected]>
  • Loading branch information
ludmilamarian authored and tiborsimko committed Nov 24, 2016
1 parent 9171779 commit 0ffee2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/bibformat/lib/elements/bfe_edit_record.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def format_element(bfo, style):
out = ""

user_info = bfo.user_info
if user_can_edit_record_collection(user_info, bfo.recID):
if user_can_edit_record_collection(user_info, int(bfo.recID)):
linkattrd = {}
if style != '':
linkattrd['style'] = style
Expand Down

0 comments on commit 0ffee2d

Please sign in to comment.