<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px"><div id="yui_3_16_0_1_1434030798203_7873"><span></span></div>  <div id="yui_3_16_0_1_1434030798203_8057">Dear tomas, </div><div id="yui_3_16_0_1_1434030798203_8110"><br></div><div id="yui_3_16_0_1_1434030798203_8031" dir="ltr"><a href="http://git.koha-community.org/gitweb/?p=koha.git;a=blob;f=tools/viewlog.pl;h=a13ec5faf27e8692f11684e8c7b0075590d7595d;hb=HEAD" id="yui_3_16_0_1_1434030798203_8030">http://git.koha-community.org/gitweb/?p=koha.git;a=blob;f=tools/viewlog.pl;h=a13ec5faf27e8692f11684e8c7b0075590d7595d;hb=HEAD</a><br></div><div id="yui_3_16_0_1_1434030798203_8031" dir="ltr"><br></div><div class="" style="font-family: monospace; font-size: small; white-space: pre;" id="yui_3_16_0_1_1434030798203_8109"><a id="l80" href="http://git.koha-community.org/gitweb/?p=koha.git;a=blob;f=tools/viewlog.pl;h=a13ec5faf27e8692f11684e8c7b0075590d7595d;hb=HEAD#l80" class="" style="color: rgb(153, 153, 153); text-decoration: none;">  80</a>     if ( C4::Context->preference('ExtendedPatronAttributes') ) {</div><div class="" style="font-family: monospace; font-size: small; white-space: pre;" id="yui_3_16_0_1_1434030798203_8147"><a id="l81" href="http://git.koha-community.org/gitweb/?p=koha.git;a=blob;f=tools/viewlog.pl;h=a13ec5faf27e8692f11684e8c7b0075590d7595d;hb=HEAD#l81" class="" style="color: rgb(153, 153, 153); text-decoration: none;">  81</a>         my $attributes = GetBorrowerAttributes( $data->{'borrowernumber'} );</div><div class="" style="font-family: monospace; font-size: small; white-space: pre;" id="yui_3_16_0_1_1434030798203_8148"><a id="l82" href="http://git.koha-community.org/gitweb/?p=koha.git;a=blob;f=tools/viewlog.pl;h=a13ec5faf27e8692f11684e8c7b0075590d7595d;hb=HEAD#l82" class="" style="color: rgb(153, 153, 153); text-decoration: none;">  82</a>         $template->param(</div><div class="" style="font-family: monospace; font-size: small; white-space: pre;" id="yui_3_16_0_1_1434030798203_8108"><a id="l83" href="http://git.koha-community.org/gitweb/?p=koha.git;a=blob;f=tools/viewlog.pl;h=a13ec5faf27e8692f11684e8c7b0075590d7595d;hb=HEAD#l83" class="" style="color: rgb(153, 153, 153); text-decoration: none;">  83</a>             ExtendedPatronAttributes => 1,</div><div class="" style="font-family: monospace; font-size: small; white-space: pre;" id="yui_3_16_0_1_1434030798203_8102"><a id="l84" href="http://git.koha-community.org/gitweb/?p=koha.git;a=blob;f=tools/viewlog.pl;h=a13ec5faf27e8692f11684e8c7b0075590d7595d;hb=HEAD#l84" class="" style="color: rgb(153, 153, 153); text-decoration: none;">  84</a>             extendedattributes       => $attributes</div><div class="" style="font-family: monospace; font-size: small; white-space: pre;" id="yui_3_16_0_1_1434030798203_8103"><a id="l85" href="http://git.koha-community.org/gitweb/?p=koha.git;a=blob;f=tools/viewlog.pl;h=a13ec5faf27e8692f11684e8c7b0075590d7595d;hb=HEAD#l85" class="" style="color: rgb(153, 153, 153); text-decoration: none;">  85</a>         );</div><div class="" style="font-family: monospace; font-size: small; white-space: pre;" dir="ltr" id="yui_3_16_0_1_1434030798203_8104"><a id="l86" href="http://git.koha-community.org/gitweb/?p=koha.git;a=blob;f=tools/viewlog.pl;h=a13ec5faf27e8692f11684e8c7b0075590d7595d;hb=HEAD#l86" class="" style="color: rgb(153, 153, 153); text-decoration: none;">  86</a>     }</div><div class="qtdSeparateBR" id="yui_3_16_0_1_1434030798203_7895" dir="ltr"><br>If you turn on [ExtendedPatronAttributes] options, </div><div class="qtdSeparateBR" id="yui_3_16_0_1_1434030798203_7895" dir="ltr"><br></div><div class="qtdSeparateBR" id="yui_3_16_0_1_1434030798203_7895" dir="ltr">then it call GetBorrowerAttributes function. </div><div class="qtdSeparateBR" id="yui_3_16_0_1_1434030798203_7895" dir="ltr"><br></div><div class="qtdSeparateBR" id="yui_3_16_0_1_1434030798203_7895" dir="ltr">You use C4::Members::Attributes module, but there isn't the module in front ofin front of viewlog.pl . </div><div class="qtdSeparateBR" id="yui_3_16_0_1_1434030798203_7895" dir="ltr"><br></div><div class="qtdSeparateBR" id="yui_3_16_0_1_1434030798203_7895" dir="ltr"><a href="http://git.koha-community.org/gitweb/?p=koha.git;a=blob;f=C4/Members/Attributes.pm;h=a56a6273a5716390726eb81480a5864b3acf43dd;hb=HEAD" id="yui_3_16_0_1_1434030798203_8379">http://git.koha-community.org/gitweb/?p=koha.git;a=blob;f=C4/Members/Attributes.pm;h=a56a6273a5716390726eb81480a5864b3acf43dd;hb=HEAD</a><br></div><div id="yui_3_16_0_1_1434030798203_7895">  </div><div class="qtdSeparateBR" id="yui_3_16_0_1_1434030798203_7895" dir="ltr">Reproduce the error , you can turn on [ExtendedPatronAttributes] options </div><div class="qtdSeparateBR" id="yui_3_16_0_1_1434030798203_7895" dir="ltr">in the system preference</div><div class="qtdSeparateBR" id="yui_3_16_0_1_1434030798203_7895" dir="ltr">http://your koha ip :8080/cgi-bin/koha/admin/preferences.pl<br></div><div class="qtdSeparateBR" id="yui_3_16_0_1_1434030798203_7895" dir="ltr">, and view <br></div><div class="qtdSeparateBR" id="yui_3_16_0_1_1434030798203_7895" dir="ltr"><a href="http://140.136.152.183:8080/cgi-bin/koha/tools/viewlog.pl?do_it=1&modules=MEMBERS&modules=circulation&object=1&src=circ" id="yui_3_16_0_1_1434030798203_9759">http://your koha ip:8080/cgi-bin/koha/tools/viewlog.pl?do_it=1&modules=MEMBERS&modules=circulation&object=1&src=circ</a><br></div><div class="qtdSeparateBR" id="yui_3_16_0_1_1434030798203_7895" dir="ltr"><br></div><div class="qtdSeparateBR" id="yui_3_16_0_1_1434030798203_7895" dir="ltr">Version affected 3.16.x,<br></div><div class="qtdSeparateBR" id="yui_3_16_0_1_1434030798203_7895" dir="ltr"><br></div><div class="qtdSeparateBR" id="yui_3_16_0_1_1434030798203_7895" dir="ltr">Version 3.18, 3.20 are ok</div><div class="qtdSeparateBR" id="yui_3_16_0_1_1434030798203_7895" dir="ltr"><br></div><div class="qtdSeparateBR" id="yui_3_16_0_1_1434030798203_7895" dir="ltr">line 74 they have add "use C4::Members::Attributes qw(GetBorrowerAttributes)"  </div><div class="qtdSeparateBR" id="yui_3_16_0_1_1434030798203_7895" dir="ltr"><br></div><div class="qtdSeparateBR" id="yui_3_16_0_1_1434030798203_7895" dir="ltr"><div class="" style="font-family: monospace; font-size: small; white-space: pre;" id="yui_3_16_0_1_1434030798203_10613"><a id="l74" href="http://git.koha-community.org/gitweb/?p=koha.git;a=blob;f=tools/viewlog.pl;h=a13ec5faf27e8692f11684e8c7b0075590d7595d;hb=HEAD#l74" class="" style="color: rgb(153, 153, 153); text-decoration: none;"> 74</a>     use C4::Members::Attributes qw(GetBorrowerAttributes);</div><div class="" style="font-family: monospace; font-size: small; white-space: pre;" dir="ltr" id="yui_3_16_0_1_1434030798203_10606"><a id="l75" href="http://git.koha-community.org/gitweb/?p=koha.git;a=blob;f=tools/viewlog.pl;h=a13ec5faf27e8692f11684e8c7b0075590d7595d;hb=HEAD#l75" class="" style="color: rgb(153, 153, 153); text-decoration: none;">  75</a>     my $borrowernumber = $object;</div><div class="" style="font-family: monospace; font-size: small; white-space: pre;" dir="ltr" id="yui_3_16_0_1_1434030798203_10606"><br></div><div class="" style="font-family: monospace; font-size: small; white-space: pre;" dir="ltr" id="yui_3_16_0_1_1434030798203_10606">,so there no error. </div><div class="" style="font-family: monospace; font-size: small; white-space: pre;" dir="ltr" id="yui_3_16_0_1_1434030798203_10606"><br></div><div class="" style="font-family: monospace; font-size: small; white-space: pre;" dir="ltr" id="yui_3_16_0_1_1434030798203_10606">Thanks a lot,</div><div class="" style="font-family: monospace; font-size: small; white-space: pre;" dir="ltr" id="yui_3_16_0_1_1434030798203_10606"><br></div><div class="" style="font-family: monospace; font-size: small; white-space: pre;" dir="ltr" id="yui_3_16_0_1_1434030798203_10606">龍山 </div></div><div class="qtdSeparateBR" id="yui_3_16_0_1_1434030798203_7895"><br></div><div class="yahoo_quoted" id="yui_3_16_0_1_1434030798203_7892" style="display: block;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;" id="yui_3_16_0_1_1434030798203_7891"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;" id="yui_3_16_0_1_1434030798203_7890"> <div dir="ltr" id="yui_3_16_0_1_1434030798203_7894"> <font size="2" face="Arial" id="yui_3_16_0_1_1434030798203_7893"> Tomas Cohen Arazi <tomascohen@gmail.com> 於 2015/6/11 (週四) 10:14 PM 寫道﹕<br> </font> </div> <blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; margin-top: 5px; padding-left: 5px;" id="yui_3_16_0_1_1434030798203_7889">  <br><br> <div class="y_msg_container" id="yui_3_16_0_1_1434030798203_8020"><div id="yiv4836934253"><div id="yui_3_16_0_1_1434030798203_8019"><div dir="ltr" id="yui_3_16_0_1_1434030798203_8018">You should definitely fill a bug on <a rel="nofollow" shape="rect" target="_blank" href="http://bugs.koha-community.org/" id="yui_3_16_0_1_1434030798203_8283">http://bugs.koha-community.org</a> about it.<div id="yui_3_16_0_1_1434030798203_8017"><br clear="none"></div><div id="yui_3_16_0_1_1434030798203_8195">A side note: I couldn't reproduce the error on my test site. So please explain in detail things like if the patron has or hasn't extended attributes, etc.</div></div><div class="yiv4836934253gmail_extra" id="yui_3_16_0_1_1434030798203_8022"><br clear="none"><div class="yiv4836934253gmail_quote" id="yui_3_16_0_1_1434030798203_8021">2015-06-11 0:53 GMT-03:00 <a rel="nofollow" shape="rect" target="_blank" href="http://long_sam.tw/" id="yui_3_16_0_1_1434030798203_8419">long_sam.tw</a> <span dir="ltr" id="yui_3_16_0_1_1434030798203_8960"><<a rel="nofollow" shape="rect" ymailto="mailto:long_sam.tw@yahoo.com.tw" target="_blank" href="mailto:long_sam.tw@yahoo.com.tw" id="yui_3_16_0_1_1434030798203_8959">long_sam.tw@yahoo.com.tw</a>></span>:<br clear="none"><blockquote class="yiv4836934253gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;" id="yui_3_16_0_1_1434030798203_8026"><div class="yiv4836934253yqt4908341124" id="yiv4836934253yqt48166"><div id="yui_3_16_0_1_1434030798203_8025"><div style="color:#000;background-color:#fff;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;" id="yui_3_16_0_1_1434030798203_8024"><div id="yui_3_16_0_1_1434030798203_9082">Dear koha floks, </div><div id="yui_3_16_0_1_1434030798203_8285"><br clear="none"></div><div dir="ltr" id="yui_3_16_0_1_1434030798203_8023">I found viewlog bugs. If you turn on [ExtendedPatronAttributes], </div><div dir="ltr">then view Home › Patrons › Modification log</div><div dir="ltr" id="yui_3_16_0_1_1434030798203_9083"><br clear="none"></div><div dir="ltr" id="yui_3_16_0_1_1434030798203_8286">Software error:</div><div dir="ltr" id="yui_3_16_0_1_1434030798203_8266"><br clear="none"></div><div dir="ltr" id="yui_3_16_0_1_1434030798203_8267">Undefined subroutine &main::GetBorrowerAttributes called at /usr/share/koha/intranet/cgi-bin/tools/<a rel="nofollow" shape="rect" target="_blank" href="http://viewlog.pl/">viewlog.pl</a> line 82.</div><div dir="ltr" id="yui_3_16_0_1_1434030798203_8269"><br clear="none"></div><div dir="ltr" id="yui_3_16_0_1_1434030798203_8287">Bug fix </div><div dir="ltr" id="yui_3_16_0_1_1434030798203_8288"><br clear="none"></div><div dir="ltr" id="yui_3_16_0_1_1434030798203_8293">modify <a rel="nofollow" shape="rect" target="_blank" href="http://viewlog.pl/">viewlog.pl</a> </div><div dir="ltr" id="yui_3_16_0_1_1434030798203_8292"><br clear="none"></div><div dir="ltr" id="yui_3_16_0_1_1434030798203_8291">line 82</div><div dir="ltr" id="yui_3_16_0_1_1434030798203_8289"><br clear="none"></div><div dir="ltr" id="yui_3_16_0_1_1434030798203_8418">change</div><div dir="ltr" id="yui_3_16_0_1_1434030798203_8417"><br clear="none"></div><div dir="ltr" id="yui_3_16_0_1_1434030798203_8416">my $attributes = GetBorrowerAttributes( $data->{'borrowernumber'} ); <br clear="none"></div><div dir="ltr" id="yui_3_16_0_1_1434030798203_8298"><br clear="none"></div><div dir="ltr" id="yui_3_16_0_1_1434030798203_8411">to </div><div dir="ltr" id="yui_3_16_0_1_1434030798203_8412"><br clear="none"></div><div dir="ltr" id="yui_3_16_0_1_1434030798203_8413">my $attributes = C4::Members::Attributes::GetBorrowerAttributes( $data->{'borrowernumber'} );<br clear="none"></div><div dir="ltr"><br clear="none"></div><div dir="ltr"><br clear="none"></div><div dir="ltr" id="yui_3_16_0_1_1434030798203_9099">Koha version : 3.16.11, 3.18.7, 3.20</div><div dir="ltr"><br clear="none"></div><div dir="ltr" id="yui_3_16_0_1_1434030798203_9087">Help me patch viewlogs next release version.<br clear="none"></div><div dir="ltr"><br clear="none"></div><div dir="ltr" id="yui_3_16_0_1_1434030798203_9093">Thanks a lot</div><div dir="ltr" id="yui_3_16_0_1_1434030798203_9095"><br clear="none"></div><div dir="ltr" id="yui_3_16_0_1_1434030798203_9085">龍山</div></div></div></div><br clear="none">_______________________________________________<br clear="none">
Koha-devel mailing list<br clear="none">
<a rel="nofollow" shape="rect" ymailto="mailto:Koha-devel@lists.koha-community.org" target="_blank" href="mailto:Koha-devel@lists.koha-community.org">Koha-devel@lists.koha-community.org</a><br clear="none">
<a rel="nofollow" shape="rect" target="_blank" href="http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel">http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel</a><br clear="none">
website : <a rel="nofollow" shape="rect" target="_blank" href="http://www.koha-community.org/">http://www.koha-community.org/</a><br clear="none">
git : <a rel="nofollow" shape="rect" target="_blank" href="http://git.koha-community.org/">http://git.koha-community.org/</a><br clear="none">
bugs : <a rel="nofollow" shape="rect" target="_blank" href="http://bugs.koha-community.org/">http://bugs.koha-community.org/</a><br clear="none"></blockquote></div><br clear="none"><br clear="all"><div><br clear="none"></div>-- <br clear="none"><div class="yiv4836934253gmail_signature" id="yui_3_16_0_1_1434030798203_9090"><div dir="ltr" id="yui_3_16_0_1_1434030798203_9089"><div id="yui_3_16_0_1_1434030798203_9088">Tomás Cohen Arazi</div><div>Prosecretaría de Informática</div><div>Universidad Nacional de Córdoba</div><div id="yui_3_16_0_1_1434030798203_9092">✆ +54 351 5353750 ext 13168</div><div>GPG: B76C 6E7C 2D80 551A C765  E225 0A27 2EA1 B2F3 C15F</div></div></div>
</div></div></div><br><div class="yqt4908341124" id="yqt34321">_______________________________________________<br clear="none">Koha-devel mailing list<br clear="none"><a shape="rect" ymailto="mailto:Koha-devel@lists.koha-community.org" href="mailto:Koha-devel@lists.koha-community.org">Koha-devel@lists.koha-community.org</a><br clear="none"><a shape="rect" href="http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel" target="_blank">http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel</a><br clear="none">website : <a shape="rect" href="http://www.koha-community.org/" target="_blank">http://www.koha-community.org/</a><br clear="none">git : <a shape="rect" href="http://git.koha-community.org/" target="_blank">http://git.koha-community.org/</a><br clear="none">bugs : <a shape="rect" href="http://bugs.koha-community.org/" target="_blank">http://bugs.koha-community.org/</a></div><br><br></div> </blockquote>  </div> </div>   </div></div></body></html>