diff --git a/CHANGES.rst b/CHANGES.rst index 00828e0a1c..f2d055c44c 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -21,6 +21,7 @@ Changelog **Fixed** +- #494 Rejection reasons widget does not appear on rejection - #492 Fix AR Add Form: CC Contacts not set on Contact Change - #489 Worksheet Templates selection list is empty in Worksheets view - #490 Fix AR Add Form: No specifications found if a sample type was set diff --git a/bika/lims/browser/js/bika.lims.rejection.js b/bika/lims/browser/js/bika.lims.rejection.js index e7f0092bfc..52f2ac8f71 100644 --- a/bika/lims/browser/js/bika.lims.rejection.js +++ b/bika/lims/browser/js/bika.lims.rejection.js @@ -5,16 +5,6 @@ var that = this; that.load = function() { - // I don't know why samples don't have the reject state button, so I'll - // have to insert a handmade one. - if ($('body').hasClass('portaltype-sample') && - $('#plone-contentmenu-workflow .state-reject').length < 1) { - var url = window.location.href.replace('/base_view',''); - var autentification = $('input[name="_authenticator"]').val(); - // we have to insert the state button - var dom_e = '