Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BibEdit: fix recID type #2796

Conversation

ludmilamarian
Copy link
Contributor

  • Various functions working with the recid expect it to be
    an integer, rather than a string.

Signed-off-by: Ludmila Marian [email protected]

* Various functions working with the recid expect it to be
  an integer, rather than a string.

Signed-off-by: Ludmila Marian <[email protected]>
@@ -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)):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't it be fixed somewhere in BibFormatObject?

@jirikuncar jirikuncar modified the milestone: v1.3 Mar 23, 2015
egabancho added a commit to CERNDocumentServer/invenio that referenced this pull request May 9, 2016
…r-bibedit-fix-recid

  BibEdit: fix recID type
@jirikuncar
Copy link
Member

@ludmilamarian is the patch still needed or can we close it?

@egabancho
Copy link
Member

It is deploy on CDS and is a bug fix, thus I is probably relevant for either legacy or maint-1.2

@ludmilamarian ludmilamarian modified the milestones: v1.2.2, v1.3.0 Oct 25, 2016
ludmilamarian pushed a commit to CERNDocumentServer/invenio that referenced this pull request Oct 27, 2016
…r-bibedit-fix-recid

  BibEdit: fix recID type
tiborsimko pushed a commit to tiborsimko/invenio that referenced this pull request Nov 24, 2016
* 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]>
@tiborsimko
Copy link
Member

Closed by #3728.

@tiborsimko tiborsimko closed this Nov 24, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants