Your message dated Sat, 24 Feb 2018 04:28:46 +0000
with message-id <e1eprs2-0004au...@fasolo.debian.org>
and subject line Bug#890598: Removed package(s) from unstable
has caused the Debian Bug report #883418,
regarding dolibarr: EDM module does not work because of jQuery version
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
883418: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=883418
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: dolibarr
Version: 4.0.2+dfsg4-2
Severity: important
Tags: patch

After upgrading from to stretch, module EDM does not work anymore.
Firefox's webconsole prints this:
'TypeError: v.selector is undefined (jquery.layout.min.js:123:157)'

After investigation it appears that this problem is Debian specific.
Dolibarr from upstream includes jquery v1.12 while Debian's package
provides jquery v.3.1 from package libjs-jquery and unfortunately
EDM uses a jquery plugin (UI Layout) which was not updated to be
compatible with jquery v3.

The problem is already known:
https://github.com/allpro/layout/issues/10
https://github.com/allpro/layout/issues/17

I attach a simple patch for the Debian package using the
workaround proposed in issue 17.

-- 
pitchum
Index: b/htdocs/main.inc.php
===================================================================
--- a/htdocs/main.inc.php
+++ b/htdocs/main.inc.php
@@ -1145,6 +1145,7 @@ function top_htmlhead($head, $title='',
             // jQuery Layout (still used by ECM module)
             if (defined('REQUIRE_JQUERY_LAYOUT'))
             {
+                print '<script type="text/javascript">(function ($){$.fn.selector = { split: function() { return ""; }};})(jQuery);</script>\n';
                 print '<script type="text/javascript" src="'.DOL_URL_ROOT.'/includes/jquery/plugins/layout/jquery.layout.min.js'.($ext?'?'.$ext:'').'"></script>'."\n";
             }
             // jQuery jnotify

--- End Message ---
--- Begin Message ---
Version: 5.0.4+dfsg3-1+rm

Dear submitter,

as the package dolibarr has just been removed from the Debian archive
unstable we hereby close the associated bug reports.  We are sorry
that we couldn't deal with your issue properly.

For details on the removal, please see https://bugs.debian.org/890598

The version of this package that was in Debian prior to this removal
can still be found using http://snapshot.debian.org/.

This message was generated automatically; if you believe that there is
a problem with it please contact the archive administrators by mailing
ftpmas...@ftp-master.debian.org.

Debian distribution maintenance software
pp.
Scott Kitterman (the ftpmaster behind the curtain)

--- End Message ---

Reply via email to