strongbox: remove id parameter to the /myspace/strongbox/pick/ url, it's unused
This commit is contained in:
parent
e80f903b36
commit
b7279f8185
|
@ -8,7 +8,7 @@ class FileWithPreviewAndStrongboxWidget(FileWithPreviewWidget):
|
|||
get_response().add_javascript(['../../aq/js/strongbox.js'])
|
||||
root_url = get_publisher().get_root_url()
|
||||
t += htmltext('''<p class="use-file-from-strongbox"><span
|
||||
data-url="%smyspace/strongbox/pick?id=%s"
|
||||
data-url="%smyspace/strongbox/pick"
|
||||
rel="popup">%s</span></p>''') % (
|
||||
root_url, self.name, _('Use file from strongbox'))
|
||||
root_url, _('Use file from strongbox'))
|
||||
return t
|
||||
|
|
|
@ -325,7 +325,6 @@ class StrongboxDirectory(Directory):
|
|||
def pick [html] (self):
|
||||
if get_request().form.get('select') == 'true':
|
||||
return self.picked_file()
|
||||
field_id = str(get_request().form.get('id'))
|
||||
root_url = get_publisher().get_root_url()
|
||||
sffiles = StrongboxItem.get_with_indexed_value(
|
||||
str('user_id'), str(get_request().user.id))
|
||||
|
|
Reference in New Issue