From 1cd603b92cac7cc1d22031faca8f4b6b073ec8ae Mon Sep 17 00:00:00 2001
From: llaffont <llaffont@afi-sa.fr>
Date: Mon, 29 Feb 2016 15:48:02 +0100
Subject: [PATCH] hotline #39536 fix validation button

---
 VERSIONS                               | 5 +++++
 library/ZendAfi/View/Helper/Bouton.php | 2 +-
 library/startup.php                    | 2 +-
 3 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/VERSIONS b/VERSIONS
index 6fcbd25a497..dc83d018894 100644
--- a/VERSIONS
+++ b/VERSIONS
@@ -1,3 +1,8 @@
+29/02/2016 - v7.5.15
+
+ - ticket #39536 : correction du bouton validation dans le formulaire d'article
+
+
 29/02/2016 - v7.5.14
 
  - ticket #37405 : Administration ; correction de l'affichage du tableau d'assistance
diff --git a/library/ZendAfi/View/Helper/Bouton.php b/library/ZendAfi/View/Helper/Bouton.php
index 308847b8c14..16fb00efe4a 100644
--- a/library/ZendAfi/View/Helper/Bouton.php
+++ b/library/ZendAfi/View/Helper/Bouton.php
@@ -74,7 +74,7 @@ class ZendAfi_View_Helper_Bouton extends ZendAfi_View_Helper_BaseHelper {
             if(!$largeur)
               $largeur="120px";
 
-            $onclick = 'var form=$(this).parents(\'form\'); if (!form.size()) form=$(this).parents(\'table\').prevAll(\'form\');';
+            $onclick = 'var form=$(this).parents(\'form\'); if (!form.size()) form=$(this).parents(\'.boutons\').prevAll(\'form\');';
             if ($this->_render_popup)
               $onclick .= 'initializeAjaxFormSubmit(form);';
             $onclick .= 'form.submit(); return false;';
diff --git a/library/startup.php b/library/startup.php
index 8bdb5848884..a48276bb9b0 100644
--- a/library/startup.php
+++ b/library/startup.php
@@ -65,7 +65,7 @@ function defineConstant($name, $value) {
 function setupConstants() {
   defineConstant('BOKEH_MAJOR_VERSION','7.5');
 
-  defineConstant('BOKEH_RELEASE_NUMBER', BOKEH_MAJOR_VERSION . '.14');
+  defineConstant('BOKEH_RELEASE_NUMBER', BOKEH_MAJOR_VERSION . '.15');
 
   defineConstant('BOKEH_REMOTE_FILES', 'http://git.afi-sa.fr/afi/opacce/');
 
-- 
GitLab