Skip to content

Commit

Permalink
document detailed view: fix missing message on item delete button
Browse files Browse the repository at this point in the history
* Closes #447

Co-Authored-by: Renaud Michotte <renaud.michotte@gmail.com>
  • Loading branch information
zannkukai authored and iGor milhit committed Sep 4, 2019
1 parent a9ed720 commit ccc768d
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,8 @@ <h6 class="dropdown-header">{{ _('Select a Pickup Location') }}</h6>
href_update=url_for('records/items.index', path=item.pid, document=record.pid),
href_delete='/api/items/' + item.pid,
json=item,
next=url_for('invenio_records_ui.doc', viewcode=viewcode, recordType=recordType, pid_value=record.pid)
next=url_for('invenio_records_ui.doc', viewcode=viewcode, recordType=recordType, pid_value=record.pid),
message=_("Item cannot be deleted: there are still transactions linked to this item.")
%}
{% include 'rero_ils/_editor_button_actions.html' %}
{% endwith %}
Expand Down

0 comments on commit ccc768d

Please sign in to comment.