[saem-devel] [PATCH saem] [views] Fix call to relationwidget.bootstrap_dialog

Sylvain Thenault sylvain.thenault at logilab.fr
Wed Feb 22 10:27:37 CET 2017


# HG changeset patch
# User Sylvain Thénault <sylvain.thenault at logilab.fr>
# Date 1487754164 -3600
#      Wed Feb 22 10:02:44 2017 +0100
# Node ID 7bff1ed3e4af73b3635a281c13e5edf631808efc
# Parent  6caab7efc2ad7209daca92f2ae36122eeaab9544
[views] Fix call to relationwidget.bootstrap_dialog

No more useless 'title' argument. Breakage introduced in 364e8f577d67.

Closes extranet #14910419

diff --git a/cubicweb_saem_ref/views/org.py b/cubicweb_saem_ref/views/org.py
--- a/cubicweb_saem_ref/views/org.py
+++ b/cubicweb_saem_ref/views/org.py
@@ -180,11 +180,11 @@ class LinkedObjectsTab(SubviewsTabView):
                      % self._cw.__(etype + '_plural').lower())
             validate = js.saem.buildRelationValidate(entity.eid, rtype, role, self.__regid__)
             url = configure_relation_widget(self._cw, divid, search_url, title, True, validate)
             links.append(tags.a(self._cw._(etype), href=url, klass=''))
         if links:
-            rwdg.bootstrap_dialog(self.w, self._cw._, divid, u'')
+            rwdg.bootstrap_dialog(self.w, self._cw._, divid)
             self.w(tags.div(id=divid, style='display: none'))
             self.w(dropdown_button(self._cw._('add'), links))
             self.w(tags.div(klass='clearfix'))
 
 


More information about the saem-devel mailing list