From b2fb3e7060f1c7391d392ea156507704ac06c877 Mon Sep 17 00:00:00 2001 From: Nahuel ANGELINETTI Date: Fri, 4 Jun 2010 11:04:35 +0200 Subject: [PATCH] [followup](MT3160) fix previous patch for non checked variable This add a if to check if the variable exists --- C4/Overdues.pm | 2 +- .../prog/en/modules/cataloguing/addbiblio.tmpl | 14 ++++++++------ 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/C4/Overdues.pm b/C4/Overdues.pm index 79e51513e6..d9bd420a39 100644 --- a/C4/Overdues.pm +++ b/C4/Overdues.pm @@ -199,7 +199,7 @@ sub GetOverduesByBorrowers{ surname, firstname, title, - CONCAT(borrowers.address, '\n', borrowers.address2) as address, + CONCAT(borrowers.streetnumber, ' ', borrowers.address, '\n', borrowers.address2) as address, city, zipcode, email, diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tmpl index 6321e5e304..e13e07a651 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tmpl @@ -454,12 +454,14 @@ function CloneSubfield(index){ // Changing the "..." link's onclick attribute for plugin callback var links = clone.getElementsByTagName('a'); var link = links[0]; - var buttonDotOnClick = link.getAttribute('onclick'); - if(buttonDotOnClick.match('Clictag')){ // -1- It s a plugin - var re = /\('.*'\)/i; - buttonDotOnClick = buttonDotOnClick.replace(re,"('"+linkid+"')"); - if(buttonDotOnClick){ - link.setAttribute('onclick',buttonDotOnClick); + if ( link ) { + var buttonDotOnClick = link.getAttribute('onclick'); + if(buttonDotOnClick.match('Clictag')){ // -1- It s a plugin + var re = /\('.*'\)/i; + buttonDotOnClick = buttonDotOnClick.replace(re,"('"+linkid+"')"); + if(buttonDotOnClick){ + link.setAttribute('onclick',buttonDotOnClick); + } } } -- 2.39.5