[koha-commits] main Koha release repository branch 20.05.x updated. v20.05.02-10-gf63c82a30f

Git repo owner gitmaster at git.koha-community.org
Fri Jul 24 23:13:25 CEST 2020


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "main Koha release repository".

The branch, 20.05.x has been updated
       via  f63c82a30f2e9455ce07085f3030d5160658c9f7 (commit)
       via  4c0d7b14bebcedb802488ee1fb200a2c7513ca91 (commit)
       via  238b2af84fe8efe8a740758a774f3587717ffb2b (commit)
       via  f5f3269e25169e295fa495dc6b38114edcb767a6 (commit)
      from  a531a75b628b04ed5638ddaf5add19e84e6779b5 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit f63c82a30f2e9455ce07085f3030d5160658c9f7
Author: Nick Clemens <nick at bywatersolutions.com>
Date:   Tue Jul 7 12:05:42 2020 +0000

    Bug 25850: (QA follow-up) use dt_from_string
    
    Signed-off-by: Nick Clemens <nick at bywatersolutions.com>
    Signed-off-by: Martin Renvoize <martin.renvoize at ptfs-europe.com>
    (cherry picked from commit 92970a9abad312a07d9efba46cc57b27469a0509)
    
    Signed-off-by: Lucas Gass <lucas at bywatersolutions.com>

commit 4c0d7b14bebcedb802488ee1fb200a2c7513ca91
Author: Martin Renvoize <martin.renvoize at ptfs-europe.com>
Date:   Mon Jun 29 09:54:58 2020 +0100

    Bug 25850: (QA follow-up) Match logic in is_holiday
    
    Signed-off-by: Nick Clemens <nick at bywatersolutions.com>
    Signed-off-by: Martin Renvoize <martin.renvoize at ptfs-europe.com>
    (cherry picked from commit afd88e1d21a5cb5f2198c058144065b64098c124)
    
    Signed-off-by: Lucas Gass <lucas at bywatersolutions.com>

commit 238b2af84fe8efe8a740758a774f3587717ffb2b
Author: Andreas Jonsson <andreas.jonsson at kreablo.se>
Date:   Tue Jun 23 15:57:29 2020 +0200

    Bug 25850: Adapt day of week in Koha::Calendar::get_push_amt to 0..6 with 0 being Sunday.
    
    1. Go to tools -> calendar and make sure Sundays are holidays by adding
       a holiday on a Sunday and selecting "Holiday repeated every same day
       of the week" and "Copy to all libraries" and save.
    2. Go to administration -> system preferences and select "Use the
       calendar to push the due date to the next open matching weekday
       for weekly loan periods, or the next open day otherwise" for the
       system preference "useDaysMode" and save the system preferences.
    3. Put the below code in a file name test.pl and execute it using
       the command "sudo koha-shell -c 'perl test.pl' kohadev"
    
       use Koha::Calendar;
    
       my $calendar = Koha::Calendar->new( branchcode => 'CPL' );
       $dt = DateTime->new(
           year       => 2020,
           month      => 06,
           day        => 21
       );
    
       print "This is a sunday: " .
       $dt->day_of_week . "\n";
    
       my $ndt = $calendar->next_open_days($dt, 0);
    
       print "This is a monday: " .
       $ndt->day_of_week . "\n";
    
    4. Without the patch applied, this script
       will freeze after printing "This is a
       sunday ...".  Abort using ctrl-c.
    5. Apply patch and run the script again.
       The test script will now complete.
    
    Signed-off-by: Martin Renvoize <martin.renvoize at ptfs-europe.com>
    Signed-off-by: Nick Clemens <nick at bywatersolutions.com>
    Signed-off-by: Martin Renvoize <martin.renvoize at ptfs-europe.com>
    (cherry picked from commit 25127f422821756b030b8f377b3e112b907be5eb)
    
    Signed-off-by: Lucas Gass <lucas at bywatersolutions.com>

commit f5f3269e25169e295fa495dc6b38114edcb767a6
Author: Martin Renvoize <martin.renvoize at ptfs-europe.com>
Date:   Fri Jun 26 16:52:50 2020 +0100

    Bug 25850: Regression Test
    
    This patch adds a unit test to test for an infinite loop as highlighted
    by the bug.
    
    Test plan
    1/ Run the test before applying the fix
    2/ The test should fail for 'Sundays'
    3/ Apply the subsquent patch
    4/ Re-run the test
    5/ It should now pass
    
    Signed-off-by: Martin Renvoize <martin.renvoize at ptfs-europe.com>
    Signed-off-by: Nick Clemens <nick at bywatersolutions.com>
    Signed-off-by: Martin Renvoize <martin.renvoize at ptfs-europe.com>
    (cherry picked from commit 95c8d19530e8bef20e02be0b74d7927764bf7ed1)
    
    Signed-off-by: Lucas Gass <lucas at bywatersolutions.com>

-----------------------------------------------------------------------

Summary of changes:
 Koha/Calendar.pm          |   9 ++++-
 t/db_dependent/Calendar.t | 101 +++++++++++++++++++++++++++++++++++++++++++++-
 2 files changed, 108 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
main Koha release repository


More information about the koha-commits mailing list